diff options
author | Tanya Lattner <tonic@nondot.org> | 2008-02-14 07:57:12 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2008-02-14 07:57:12 +0000 |
commit | 6e9bceea976a993dbc6a543c2135980df7616b97 (patch) | |
tree | f929dabf6d10ad6d73d324f711989b2ad40ddcbb /test/Assembler/2002-08-22-DominanceProblem.ll | |
parent | e8b7ccf0c9a06831266d690d0b10ead71e0a4ac5 (diff) | |
download | llvm-6e9bceea976a993dbc6a543c2135980df7616b97.tar.gz llvm-6e9bceea976a993dbc6a543c2135980df7616b97.tar.bz2 llvm-6e9bceea976a993dbc6a543c2135980df7616b97.tar.xz |
Remove llvm-upgrade
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47119 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Assembler/2002-08-22-DominanceProblem.ll')
-rw-r--r-- | test/Assembler/2002-08-22-DominanceProblem.ll | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/test/Assembler/2002-08-22-DominanceProblem.ll b/test/Assembler/2002-08-22-DominanceProblem.ll index c6fb9a3a5f..81c6129d85 100644 --- a/test/Assembler/2002-08-22-DominanceProblem.ll +++ b/test/Assembler/2002-08-22-DominanceProblem.ll @@ -1,15 +1,17 @@ -; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f +; RUN: llvm-as < %s -o /dev/null -f ; Dominance relationships is not calculated correctly for unreachable blocks, ; which causes the verifier to barf on this input. -int %test(bool %b) { -BB0: ret int 7 ; Loop is unreachable +define i32 @test(i1 %b) { +BB0: + ret i32 7 ; Loop is unreachable -Loop: - %B = phi int [%B, %L2], [%B, %Loop] ; PHI has same value always. - br bool %b, label %L2, label %Loop -L2: +Loop: ; preds = %L2, %Loop + %B = phi i32 [ %B, %L2 ], [ %B, %Loop ] ;PHI has same value always. + br i1 %b, label %L2, label %Loop + +L2: ; preds = %Loop br label %Loop } |