; Check that this test makes INDVAR and related stuff dead.
-; RUN: llvm-as < %s | opt -loop-reduce | llvm-dis | grep phi | wc -l | grep 2
+; RUN: llvm-upgrade < %s | llvm-as | opt -loop-reduce | llvm-dis | grep phi | wc -l | grep 2
declare bool %pred()
-void %test({ int, int }* %P) {
+void %test1({ int, int }* %P) {
br label %Loop
Loop:
%INDVAR = phi int [0, %0], [%INDVAR2, %Loop]
ret void
}
-declare bool %pred()
-
-void %test([2 x int]* %P) {
+void %test2([2 x int]* %P) {
br label %Loop
Loop:
%INDVAR = phi int [0, %0], [%INDVAR2, %Loop]