Don't do: "(X & 4) >> 1 == 2 --> (X & 4) == 4" if there are more than one uses of...
authorEvan Cheng <evan.cheng@apple.com>
Wed, 23 Apr 2008 00:38:06 +0000 (00:38 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 23 Apr 2008 00:38:06 +0000 (00:38 +0000)
commitf30752cbcc9a29bc10f1d811bdfe2c78f267e51b
treef799fd679e1d4be0591595353eff125ceac96eb8
parenta5ddb59a1319ccd23844c74809a64bc4d88f59d1
Don't do: "(X & 4) >> 1 == 2  --> (X & 4) == 4" if there are more than one uses of the shift result.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50118 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/shl-icmp.ll [new file with mode: 0644]