diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-02 00:31:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-02 00:31:05 +0000 |
commit | 0b178e25c4104f3577fed6e66bd2c17f9fc08eb2 (patch) | |
tree | d46127bd7e76c791264314f8fea8cca5d2dcabc2 /test/Transforms/InstCombine/or.ll | |
parent | 09987f73f63a105abaa17024aa03fd677b7247a3 (diff) | |
download | external_llvm-0b178e25c4104f3577fed6e66bd2c17f9fc08eb2.zip external_llvm-0b178e25c4104f3577fed6e66bd2c17f9fc08eb2.tar.gz external_llvm-0b178e25c4104f3577fed6e66bd2c17f9fc08eb2.tar.bz2 |
remove the instcombine transformations that are inserting nasty
pointer to int casts that confuse later optimizations. See PR3351
for details.
This improves but doesn't complete fix 483.xalancbmk because llvm-gcc
does this xform in GCC's "fold" routine as well. Clang++ will do
better I guess.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92408 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/or.ll')
-rw-r--r-- | test/Transforms/InstCombine/or.ll | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/test/Transforms/InstCombine/or.ll b/test/Transforms/InstCombine/or.ll index 4a14081..5055215 100644 --- a/test/Transforms/InstCombine/or.ll +++ b/test/Transforms/InstCombine/or.ll @@ -269,21 +269,6 @@ define i1 @test26(i32 %A, i32 %B) { } ; PR5634 -define i1 @test27(i32* %A, i32* %B) { - %C1 = icmp eq i32* %A, null - %C2 = icmp eq i32* %B, null - ; (A == 0) & (A == 0) --> (A|B) == 0 - %D = and i1 %C1, %C2 - ret i1 %D -; CHECK: @test27 -; CHECK: ptrtoint i32* %A -; CHECK: ptrtoint i32* %B -; CHECK: or i32 -; CHECK: icmp eq i32 {{.*}}, 0 -; CHECK: ret i1 -} - -; PR5634 define i1 @test28(i32 %A, i32 %B) { %C1 = icmp ne i32 %A, 0 %C2 = icmp ne i32 %B, 0 |