Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplifycfg: Fix integer overflow converting switch into icmp. #7

Merged
merged 1 commit into from
Apr 18, 2013

Commits on Apr 18, 2013

  1. simplifycfg: Fix integer overflow converting switch into icmp.

    If a switch instruction has a case for every possible value of its type,
    with the same successor, SimplifyCFG would replace it with an icmp ult,
    but the computation of the bound overflows in that case, which inverts
    the test.
    
    Patch by Jed Davis!
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179587 91177308-0d34-0410-b5e6-96231b3b80d8
    zmodem authored and jld committed Apr 18, 2013
    Configuration menu
    Copy the full SHA
    2e9f0d2 View commit details
    Browse the repository at this point in the history