Add another bswap idiom that isn't matched.
authorEric Christopher <echristo@apple.com>
Tue, 29 Jun 2010 22:22:22 +0000 (22:22 +0000)
committerEric Christopher <echristo@apple.com>
Tue, 29 Jun 2010 22:22:22 +0000 (22:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107213 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/README.txt

index efb91a1b2839db35a5103c57fe2dcc064715a985..b1080b594ff1cd100e1219f23c44f490208cd4d9 100644 (file)
@@ -300,6 +300,14 @@ unsigned long reverse(unsigned v) {
     return v ^ (t >> 8);
 }
 
+Neither is this (very standard idiom):
+
+int f(int n)
+{
+  return (((n) << 24) | (((n) & 0xff00) << 8) 
+       | (((n) >> 8) & 0xff00) | ((n) >> 24));
+}
+
 //===---------------------------------------------------------------------===//
 
 [LOOP RECOGNITION]