1 ; RUN: opt < %s -basicaa -licm -S | FileCheck %s
3 ; Test moved from sinking.ll, as it tests sinking of a store who alone touches
4 ; a memory location in a loop.
5 ; Store can be sunk out of exit block containing indirectbr instructions after
6 ; D50925. Updated to use an argument instead of undef, due to PR38989.
7 define void @test12(i32* %ptr) {
10 ; CHECK-NEXT: br label %lab4
23 br i1 undef, label %lab8, label %lab13
26 br i1 undef, label %lab13, label %lab10
40 ; CHECK: br i1 false, label %lab21, label %lab22
41 store i32 36127957, i32* %ptr, align 4
42 br i1 undef, label %lab21, label %lab22
47 ; CHECK-NEXT: indirectbr i8* undef
48 indirectbr i8* undef, [label %lab5, label %lab6, label %lab7]