diff options
author | Tanya Lattner <tonic@nondot.org> | 2008-03-25 04:26:08 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2008-03-25 04:26:08 +0000 |
commit | 6f729d601c8a6a9710356aadb42dc8d0efa95bf2 (patch) | |
tree | e662b3ee5539d7594ab49eda3eae140424ce499d /test/Transforms/LCSSA/basictest.ll | |
parent | a2fb634defce316ec972aa6f3ca3a941b4656f5e (diff) | |
download | external_llvm-6f729d601c8a6a9710356aadb42dc8d0efa95bf2.zip external_llvm-6f729d601c8a6a9710356aadb42dc8d0efa95bf2.tar.gz external_llvm-6f729d601c8a6a9710356aadb42dc8d0efa95bf2.tar.bz2 |
Byebye llvm-upgrade!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48762 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/LCSSA/basictest.ll')
-rw-r--r-- | test/Transforms/LCSSA/basictest.ll | 34 |
1 files changed, 15 insertions, 19 deletions
diff --git a/test/Transforms/LCSSA/basictest.ll b/test/Transforms/LCSSA/basictest.ll index 4dc1f54..090bde9 100644 --- a/test/Transforms/LCSSA/basictest.ll +++ b/test/Transforms/LCSSA/basictest.ll @@ -1,28 +1,24 @@ -; RUN: llvm-upgrade < %s | llvm-as | opt -lcssa | llvm-dis | \ +; RUN: llvm-as < %s | opt -lcssa | llvm-dis | \ ; RUN: grep {X3.lcssa = phi i32} -; RUN: llvm-upgrade < %s | llvm-as | opt -lcssa | llvm-dis | \ +; RUN: llvm-as < %s | opt -lcssa | llvm-dis | \ ; RUN: grep {X4 = add i32 3, %X3.lcssa} -void %lcssa(bool %S2) { +define void @lcssa(i1 %S2) { entry: br label %loop.interior - -loop.interior: ; preds = %entry - br bool %S2, label %if.true, label %if.false - -if.true: - %X1 = add int 0, 0 +loop.interior: ; preds = %post.if, %entry + br i1 %S2, label %if.true, label %if.false +if.true: ; preds = %loop.interior + %X1 = add i32 0, 0 ; <i32> [#uses=1] br label %post.if - -if.false: - %X2 = add int 0, 1 +if.false: ; preds = %loop.interior + %X2 = add i32 0, 1 ; <i32> [#uses=1] br label %post.if - -post.if: - %X3 = phi int [%X1, %if.true], [%X2, %if.false] - br bool %S2, label %loop.exit, label %loop.interior - -loop.exit: - %X4 = add int 3, %X3 +post.if: ; preds = %if.false, %if.true + %X3 = phi i32 [ %X1, %if.true ], [ %X2, %if.false ] ; <i32> [#uses=1] + br i1 %S2, label %loop.exit, label %loop.interior +loop.exit: ; preds = %post.if + %X4 = add i32 3, %X3 ; <i32> [#uses=0] ret void } + |