projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c8a370
)
New testcase for wierd combine opportunity found in bzip2 benchmark
author
Chris Lattner
<sabre@nondot.org>
Thu, 9 May 2002 19:52:36 +0000
(19:52 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 9 May 2002 19:52:36 +0000
(19:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2580
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Transforms/InstCombine/set.ll
patch
|
blob
|
history
diff --git
a/test/Transforms/InstCombine/set.ll
b/test/Transforms/InstCombine/set.ll
index 264bb353c315e79a298d1f562579583629f5c375..3fd94c31a41296a193ea486cae8efb514c768bf7 100644
(file)
--- a/
test/Transforms/InstCombine/set.ll
+++ b/
test/Transforms/InstCombine/set.ll
@@
-6,16
+6,20
@@
; RUN: else exit 0
; RUN: fi
-implementation
+%X = uninitialized global int
bool "test1"(int %A) {
%B = seteq int %A, %A
- ret bool %B
+ %C = seteq int* %X, null ; Never true
+ %D = and bool %B, %C
+ ret bool %D
}
bool "test2"(int %A) {
%B = setne int %A, %A
- ret bool %B
+ %C = setne int* %X, null ; Never false
+ %D = or bool %B, %C
+ ret bool %D
}
bool "test3"(int %A) {