Test general value/value selection which we can do now that we use the
authorChris Lattner <sabre@nondot.org>
Tue, 30 Mar 2004 19:45:11 +0000 (19:45 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 30 Mar 2004 19:45:11 +0000 (19:45 +0000)
select instruction

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12546 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/SimplifyCFG/PhiEliminate.ll

index e2a4c93309c76e6592357d6ec27b438bdf55ddf1..a6b8062c67d75b78836a15f36b0668d06b66cfaf 100644 (file)
@@ -9,7 +9,7 @@
 declare void %use(bool)
 declare void %use(int)
 
-void %test(bool %c, int %V) {
+void %test(bool %c, int %V, int %V2) {
        br bool %c, label %T, label %F
 T:
        br label %F
@@ -22,6 +22,7 @@ F:
        %I4 = phi int  [17, %T], [5, %0]
        %I5 = phi int  [%V, %T], [0, %0]
        %I6 = phi int  [%V, %0], [0, %T]
+       %I7 = phi int  [%V, %0], [%V2, %T]
        call void %use(bool %B1)
        call void %use(bool %B2)
        call void %use(int  %I1)