Byebye llvm-upgrade!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48762 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Tanya Lattner
2008-03-25 04:26:08 +00:00
parent a2fb634def
commit 6f729d601c
110 changed files with 1823 additions and 2138 deletions
@@ -2,16 +2,18 @@
; for all loops. This allows the -indvars pass to recognize the %IV
; induction variable in this testcase.
; RUN: llvm-upgrade < %s | llvm-as | opt -indvars | llvm-dis | grep indvar
; RUN: llvm-as < %s | opt -indvars | llvm-dis | grep indvar
int %test(bool %C) {
define i32 @test(i1 %C) {
; <label>:0
br label %Loop
Loop:
%IV = phi uint [1, %0], [%IV2, %BE1], [%IV2, %BE2]
%IV2 = add uint %IV, 2
br bool %C, label %BE1, label %BE2
BE1:
Loop: ; preds = %BE2, %BE1, %0
%IV = phi i32 [ 1, %0 ], [ %IV2, %BE1 ], [ %IV2, %BE2 ] ; <i32> [#uses=1]
%IV2 = add i32 %IV, 2 ; <i32> [#uses=2]
br i1 %C, label %BE1, label %BE2
BE1: ; preds = %Loop
br label %Loop
BE2:
BE2: ; preds = %Loop
br label %Loop
}