this case is matched now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57096 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2008-10-05 02:16:12 +00:00
parent 8c34cd287a
commit b1ac769873

View File

@ -271,15 +271,7 @@ alas...
//===---------------------------------------------------------------------===//
This isn't recognized as bswap by instcombine:
unsigned int swap_32(unsigned int v) {
v = ((v & 0x00ff00ffU) << 8) | ((v & 0xff00ff00U) >> 8);
v = ((v & 0x0000ffffU) << 16) | ((v & 0xffff0000U) >> 16);
return v;
}
Nor is this (yes, it really is bswap):
This isn't recognized as bswap by instcombine (yes, it really is bswap):
unsigned long reverse(unsigned v) {
unsigned t;