summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-12-01 01:07:11 +0000
committerBill Wendling <isanbard@gmail.com>2008-12-01 01:07:11 +0000
commit5b902c5b1ea925f4a95cb8876836a8ed85cc78c3 (patch)
tree29e9a27913679e6ce3e13ab107ded5984a5e3935 /llvm/lib/Target
parent6f0730ff1110c196173096f7170de7b0ad990803 (diff)
downloadbcm5719-llvm-5b902c5b1ea925f4a95cb8876836a8ed85cc78c3.tar.gz
bcm5719-llvm-5b902c5b1ea925f4a95cb8876836a8ed85cc78c3.zip
Implement ((A|B)&1)|(B&-2) -> (A&1) | B transformation. This also takes care of
permutations of this pattern. llvm-svn: 60312
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/README.txt6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/Target/README.txt b/llvm/lib/Target/README.txt
index 17b830d5d4a..fb6b0cd53d5 100644
--- a/llvm/lib/Target/README.txt
+++ b/llvm/lib/Target/README.txt
@@ -1147,12 +1147,6 @@ There's an unnecessary zext in the generated code with "clang
//===---------------------------------------------------------------------===//
-int a(int a, int b) {return ((a|b)&1) | (b&-2);}
-Should be combined to "(a&1)|b". Currently not optimized with "clang
--emit-llvm-bc | opt -std-compile-opts".
-
-//===---------------------------------------------------------------------===//
-
int a(unsigned b) {return ((b << 31) | (b << 30)) >> 31;}
Should be combined to "((b >> 1) | b) & 1". Currently not optimized
with "clang -emit-llvm-bc | opt -std-compile-opts".
OpenPOWER on IntegriCloud