diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2008-08-06 04:54:03 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2008-08-06 04:54:03 +0000 |
commit | b30591ec646b5f53c1163bf9bd74091248598589 (patch) | |
tree | 59f08c6890c531135a27ab46a5a07960e2ea4a45 /test | |
parent | 5226698f679755690c1263e89dd9c0a93f3d6203 (diff) | |
download | llvm-b30591ec646b5f53c1163bf9bd74091248598589.tar.gz llvm-b30591ec646b5f53c1163bf9bd74091248598589.tar.bz2 llvm-b30591ec646b5f53c1163bf9bd74091248598589.tar.xz |
Reinstate this optimization, but without the miscompile. Thanks to Bill for
tracking down that this was breaking llvm-gcc bootstrap on Linux.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54394 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/InstCombine/2008-07-08-AndICmp.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2008-07-08-AndICmp.ll b/test/Transforms/InstCombine/2008-07-08-AndICmp.ll new file mode 100644 index 0000000000..c600241314 --- /dev/null +++ b/test/Transforms/InstCombine/2008-07-08-AndICmp.ll @@ -0,0 +1,10 @@ +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep icmp | count 1 +; PR2330 + +define i1 @foo(i32 %a, i32 %b) nounwind { +entry: + icmp ult i32 %a, 8 ; <i1>:0 [#uses=1] + icmp ult i32 %b, 8 ; <i1>:1 [#uses=1] + and i1 %1, %0 ; <i1>:2 [#uses=1] + ret i1 %2 +} |