When determining if we can fold (x >> C1) << C2, the bits that we need to verify...
authorOwen Anderson <resistor@mac.com>
Thu, 23 Dec 2010 23:56:24 +0000 (23:56 +0000)
committerOwen Anderson <resistor@mac.com>
Thu, 23 Dec 2010 23:56:24 +0000 (23:56 +0000)
commitec3953ff95c6106185fc6509175b86cbdf3958f6
treee01b7ec9d5c813c12d33fb58095a5fd80bdeb3d9
parente4a2dd2f1ada7acea92df156ebaf8a45a17e139d
When determining if we can fold (x >> C1) << C2, the bits that we need to verify are zero
are not the low bits of x, but the bits that WILL be the low bits after the operation completes.

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