2003-02-28 06:34:31 +08:00
|
|
|
; This testcase fails because preheader insertion is not updating exit node
|
|
|
|
; information for loops.
|
|
|
|
|
2008-03-19 11:47:13 +08:00
|
|
|
; RUN: llvm-as < %s | opt -licm
|
2003-02-28 06:34:31 +08:00
|
|
|
|
2008-03-19 11:47:13 +08:00
|
|
|
define i32 @main(i32 %argc, i8** %argv) {
|
|
|
|
bb0:
|
|
|
|
br i1 false, label %bb7, label %bb5
|
|
|
|
bb5: ; preds = %bb5, %bb0
|
|
|
|
br i1 false, label %bb5, label %bb7
|
|
|
|
bb7: ; preds = %bb7, %bb5, %bb0
|
|
|
|
br i1 false, label %bb7, label %bb10
|
|
|
|
bb10: ; preds = %bb7
|
|
|
|
ret i32 0
|
2003-02-28 06:34:31 +08:00
|
|
|
}
|
|
|
|
|