Revert r170020, "Simplify negated bit test", for now.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 13 Dec 2012 14:28:16 +0000 (14:28 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 13 Dec 2012 14:28:16 +0000 (14:28 +0000)
commit38d2b2442feaa777cf87c5f57939b158f04735fe
tree373d059509ecdc5908896b64d1102a05572a3d9d
parent18ec81b8547515e3163bd43a354782075a0a47bd
Revert r170020, "Simplify negated bit test", for now.

This assumes (1 << n) is always not zero. Consider n is greater than word size.
Although I know it is undefined, this transforms undefined behavior hidden.

This led clang unexpected behavior with some failures. I will investigate to fix undefined shl in clang.

llvm-svn: 170128
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
llvm/test/Transforms/InstCombine/icmp.ll