X86MCInstLower::Lower should only not emit anything to OutStreamer,
[llvm/avr.git] / test / Transforms / GlobalOpt / 2006-11-01-ShrinkGlobalPhiCrash.ll
blob352639ac067c1c9d109a9c89ee86727656996897
1 ; RUN: opt < %s -globalopt -disable-output
3         %struct._list = type { i32*, %struct._list* }
4         %struct._play = type { i32, i32*, %struct._list*, %struct._play* }
5 @nrow = internal global i32 0           ; <i32*> [#uses=2]
7 define void @make_play() {
8 entry:
9         br label %cond_true16.i
11 cond_true16.i:          ; preds = %cond_true16.i, %entry
12         %low.0.in.i.0 = phi i32* [ @nrow, %entry ], [ null, %cond_true16.i ]            ; <i32*> [#uses=1]
13         %low.0.i = load i32* %low.0.in.i.0              ; <i32> [#uses=0]
14         br label %cond_true16.i
17 define void @make_wanted() {
18 entry:
19         unreachable
22 define void @get_good_move() {
23 entry:
24         ret void
27 define void @main() {
28 entry:
29         store i32 8, i32* @nrow
30         tail call void @make_play( )
31         ret void