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:
711b340
)
add a testcase, which we already handle
author
Chris Lattner
<sabre@nondot.org>
Sun, 14 Nov 2004 17:54:27 +0000
(17:54 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 14 Nov 2004 17:54:27 +0000
(17:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17737
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Transforms/InstCombine/phi.ll
patch
|
blob
|
history
diff --git
a/test/Transforms/InstCombine/phi.ll
b/test/Transforms/InstCombine/phi.ll
index 7459332009c382c1f5b6eb2e69b6f0a4ceeb436a..c29700757158377604b41738f6a578fb6e65cf13 100644
(file)
--- a/
test/Transforms/InstCombine/phi.ll
+++ b/
test/Transforms/InstCombine/phi.ll
@@
-33,7
+33,7
@@
Exit:
ret int %B
}
-int %test
3
(bool %b) {
+int %test
4
(bool %b) {
BB0: ret int 7 ; Loop is unreachable
Loop:
@@
-43,3
+43,13
@@
L2:
br label %Loop
}
+int %test5(int %a, bool %b) {
+BB0: br label %Loop
+
+Loop:
+ %B = phi int [%A, %BB0], [undef, %Loop] ; PHI has same value always.
+ br bool %b, label %Loop, label %Exit
+Exit:
+ ret int %B
+}
+