summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-08-20 15:27:45 +0000
committerChris Lattner <sabre@nondot.org>2002-08-20 15:27:45 +0000
commit019783b1bfa06d685b4d3e16471848e3d7041a64 (patch)
tree0e28f02616800f005e4dd1b686a144e2676d2740 /llvm
parent22c3c7be7d4175f7cc18c41919474607fb757c6b (diff)
downloadbcm5719-llvm-019783b1bfa06d685b4d3e16471848e3d7041a64.tar.gz
bcm5719-llvm-019783b1bfa06d685b4d3e16471848e3d7041a64.zip
New testcase for instcombine
llvm-svn: 3396
Diffstat (limited to 'llvm')
-rw-r--r--llvm/test/Regression/Transforms/InstCombine/phi.ll11
1 files changed, 10 insertions, 1 deletions
diff --git a/llvm/test/Regression/Transforms/InstCombine/phi.ll b/llvm/test/Regression/Transforms/InstCombine/phi.ll
index a10d742ce83..e4b1381f851 100644
--- a/llvm/test/Regression/Transforms/InstCombine/phi.ll
+++ b/llvm/test/Regression/Transforms/InstCombine/phi.ll
@@ -8,7 +8,7 @@
implementation
-int "test1"(int %A, bool %b) {
+int %test1(int %A, bool %b) {
BB0: br bool %b, label %BB1, label %BB2
BB1:
%B = phi int [%A, %BB0] ; Combine away one argument PHI nodes
@@ -17,3 +17,12 @@ BB2:
ret int %A
}
+int %test2(int %A, bool %b) {
+BB0: br bool %b, label %BB1, label %BB2
+BB1:
+ br label %BB2
+BB2:
+ %B = phi int [%A, %BB0], [%A, %BB1] ; Combine away PHI nodes with same values
+ ret int %B
+}
+
OpenPOWER on IntegriCloud