summaryrefslogtreecommitdiffstats
path: root/llvm/test/Other/2003-02-19-LoopInfoNestingBug.ll
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2008-02-19 01:44:26 +0000
committerTanya Lattner <tonic@nondot.org>2008-02-19 01:44:26 +0000
commite1d2df073839f0c1e215af44286fcc11c3af47a4 (patch)
treec0721c44f883e7cd52a00569a09a9877575a2cc3 /llvm/test/Other/2003-02-19-LoopInfoNestingBug.ll
parent3f04773f7884c1c7b8b89dddfb177b1f41f54c56 (diff)
downloadbcm5719-llvm-e1d2df073839f0c1e215af44286fcc11c3af47a4.tar.gz
bcm5719-llvm-e1d2df073839f0c1e215af44286fcc11c3af47a4.zip
Remove llvm-upgrade and update tests.
llvm-svn: 47297
Diffstat (limited to 'llvm/test/Other/2003-02-19-LoopInfoNestingBug.ll')
-rw-r--r--llvm/test/Other/2003-02-19-LoopInfoNestingBug.ll33
1 files changed, 17 insertions, 16 deletions
diff --git a/llvm/test/Other/2003-02-19-LoopInfoNestingBug.ll b/llvm/test/Other/2003-02-19-LoopInfoNestingBug.ll
index ebad6baa371..32390f49a20 100644
--- a/llvm/test/Other/2003-02-19-LoopInfoNestingBug.ll
+++ b/llvm/test/Other/2003-02-19-LoopInfoNestingBug.ll
@@ -2,27 +2,28 @@
; figure out that loop "Inner" should be nested inside of leep "LoopHeader",
; and instead nests it just inside loop "Top"
;
-; RUN: llvm-upgrade < %s | llvm-as | opt -analyze -loops | \
+; RUN: llvm-as < %s | opt -analyze -loops | \
; RUN: grep { Loop Containing:\[ \]*%Inner}
;
+define void @test() {
+ br label %Top
-implementation
+Top: ; preds = %Out, %0
+ br label %LoopHeader
-void %test() {
- br label %Top
-Top:
- br label %LoopHeader
-Next:
- br bool false, label %Inner, label %Out
-Inner:
- br bool false, label %Inner, label %LoopHeader
+Next: ; preds = %LoopHeader
+ br i1 false, label %Inner, label %Out
-LoopHeader:
- br label %Next
+Inner: ; preds = %Inner, %Next
+ br i1 false, label %Inner, label %LoopHeader
-Out:
- br bool false, label %Top, label %Done
+LoopHeader: ; preds = %Inner, %Top
+ br label %Next
-Done:
- ret void
+Out: ; preds = %Next
+ br i1 false, label %Top, label %Done
+
+Done: ; preds = %Out
+ ret void
}
+
OpenPOWER on IntegriCloud