llvm.org GIT mirror llvm / b1ac769
this case is matched now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57096 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 12 years ago
1 changed file(s) with 1 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
270270
271271 //===---------------------------------------------------------------------===//
272272
273 This isn't recognized as bswap by instcombine:
274
275 unsigned int swap_32(unsigned int v) {
276 v = ((v & 0x00ff00ffU) << 8) | ((v & 0xff00ff00U) >> 8);
277 v = ((v & 0x0000ffffU) << 16) | ((v & 0xffff0000U) >> 16);
278 return v;
279 }
280
281 Nor is this (yes, it really is bswap):
273 This isn't recognized as bswap by instcombine (yes, it really is bswap):
282274
283275 unsigned long reverse(unsigned v) {
284276 unsigned t;