diff options
author | Devang Patel <dpatel@apple.com> | 2007-04-09 22:22:42 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-04-09 22:22:42 +0000 |
commit | 43979df43028e787f4870c58c5a494550a16bef7 (patch) | |
tree | 70610b9e4d181062eea7101e0bec25de47f5cc63 /test/Transforms/LoopRotate/LRCrash-2.ll | |
parent | 579633cd1006f6add1b022e9c2bc96f7f0e65777 (diff) | |
download | external_llvm-43979df43028e787f4870c58c5a494550a16bef7.zip external_llvm-43979df43028e787f4870c58c5a494550a16bef7.tar.gz external_llvm-43979df43028e787f4870c58c5a494550a16bef7.tar.bz2 |
Add Loop Rotate test cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35838 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/LoopRotate/LRCrash-2.ll')
-rw-r--r-- | test/Transforms/LoopRotate/LRCrash-2.ll | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/Transforms/LoopRotate/LRCrash-2.ll b/test/Transforms/LoopRotate/LRCrash-2.ll new file mode 100644 index 0000000..bceeb91 --- /dev/null +++ b/test/Transforms/LoopRotate/LRCrash-2.ll @@ -0,0 +1,30 @@ +; RUN: llvm-upgrade < %s | llvm-as | opt -loop-rotate -disable-output + +void @findAllPairs() { +entry: + br i1 false, label %bb139, label %cond_true + +cond_true: ; preds = %entry + ret void + +bb90: ; preds = %bb139 + br i1 false, label %bb136, label %cond_next121 + +cond_next121: ; preds = %bb90 + br i1 false, label %bb136, label %bb127 + +bb127: ; preds = %cond_next121 + br label %bb136 + +bb136: ; preds = %bb127, %cond_next121, %bb90 + %changes.1 = phi i32 [ %changes.2, %bb90 ], [ %changes.2, %cond_next121 ], [ 1, %bb127 ] ; <i32> [#uses=1] + br label %bb139 + +bb139: ; preds = %bb136, %entry + %changes.2 = phi i32 [ %changes.1, %bb136 ], [ 0, %entry ] ; <i32> [#uses=3] + br i1 false, label %bb90, label %bb142 + +bb142: ; preds = %bb139 + %changes.2.lcssa = phi i32 [ %changes.2, %bb139 ] ; <i32> [#uses=0] + ret void +} |