commit | 58bfcdbcf6a7c1cac0187f7c6beb3afe9d8f5411 | [log] [tgz] |
---|---|---|
author | Nick Lewycky <nicholas@mxc.ca> | Sat Mar 05 05:19:11 2011 +0000 |
committer | Nick Lewycky <nicholas@mxc.ca> | Sat Mar 05 05:19:11 2011 +0000 |
tree | 55ed7acb7e70c544307c139b9d20b4e49aac4146 | |
parent | 9feda1730c225589e144fb1f86a86a8cf3f39c9e [diff] |
Thread comparisons over udiv/sdiv/ashr/lshr exact and lshr nuw/nsw whenever possible. This goes into instcombine and instsimplify because instsimplify doesn't need to check hasOneUse since it returns (almost exclusively) constants. This fixes PR9343 #4 #5 and #8! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127064 91177308-0d34-0410-b5e6-96231b3b80d8