[llvm-commits] [llvm] r57096 - /llvm/trunk/lib/Target/README.txt

Chris Lattner sabre at nondot.org
Sat Oct 4 19:16:12 PDT 2008


Author: lattner
Date: Sat Oct  4 21:16:12 2008
New Revision: 57096

URL: http://llvm.org/viewvc/llvm-project?rev=57096&view=rev
Log:
this case is matched now.

Modified:
    llvm/trunk/lib/Target/README.txt

Modified: llvm/trunk/lib/Target/README.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/README.txt?rev=57096&r1=57095&r2=57096&view=diff

==============================================================================
--- llvm/trunk/lib/Target/README.txt (original)
+++ llvm/trunk/lib/Target/README.txt Sat Oct  4 21:16:12 2008
@@ -271,15 +271,7 @@
 
 //===---------------------------------------------------------------------===//
 
-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;





More information about the llvm-commits mailing list