implement instcombine folding for things like (x >> c) < 42.
authorChris Lattner <sabre@nondot.org>
Sun, 13 Feb 2011 08:07:21 +0000 (08:07 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 13 Feb 2011 08:07:21 +0000 (08:07 +0000)
commitbb75d337c4d544692cd250acba8e3507aacb7b75
tree214eeec33beaf8a6dd54ac889987f7b4addf11fe
parent16e036fa8f1d1da02deeaf9a77951f4dc711faa1
implement instcombine folding for things like (x >> c) < 42.
We were previously simplifying divisions, but not right shifts!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125454 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCompares.cpp
test/Transforms/InstCombine/exact.ll