1 ; This testcase fails because preheader insertion is not updating exit node 2 ; information for loops. 3 4 ; RUN: opt < %s -licm 5 6 define i32 @main(i32 %argc, i8** %argv) { 7 bb0: 8 br i1 false, label %bb7, label %bb5 9 bb5: ; preds = %bb5, %bb0 10 br i1 false, label %bb5, label %bb7 11 bb7: ; preds = %bb7, %bb5, %bb0 12 br i1 false, label %bb7, label %bb10 13 bb10: ; preds = %bb7 14 ret i32 0 15 } 16 17