diff options
author | Chris Lattner <sabre@nondot.org> | 2010-11-21 06:44:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-11-21 06:44:42 +0000 |
commit | 75d8f599e72c151df48a28bebc6e4e342f469b8a (patch) | |
tree | 204abb357393b3d57e53da6a821c9780ded364f2 /lib/Target/README.txt | |
parent | 79a980ad85286614bbb4c68c84ea9e3c6ed36d0d (diff) |
optimize:
void a(int x) { if (((1<<x)&8)==0) b(); }
into "x != 3", which occurs over 100 times in 403.gcc but in no
other program in llvm-test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119922 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/README.txt')
-rw-r--r-- | lib/Target/README.txt | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/Target/README.txt b/lib/Target/README.txt index 629b55d0047..06661c93354 100644 --- a/lib/Target/README.txt +++ b/lib/Target/README.txt @@ -1699,14 +1699,6 @@ This should be optimized to a single compare. Testcase derived from gcc. //===---------------------------------------------------------------------===// -Missed instcombine transformation: -void b(); -void a(int x) { if (((1<<x)&8)==0) b(); } - -The shift should be optimized out. Testcase derived from gcc. - -//===---------------------------------------------------------------------===// - Missed instcombine or reassociate transformation: int a(int a, int b) { return (a==12)&(b>47)&(b<58); } |