1 ; RUN: opt < %s -licm -S | grep promoted
2 ; Promote value if at least one use is safe
5 define i32 @f2(i32* %p, i8* %q) {
9 loop.head: ; preds = %cond.true, %entry
11 %tmp3.i = icmp eq i8* null, %q ; <i1> [#uses=1]
12 br i1 %tmp3.i, label %exit, label %cond.true
14 cond.true: ; preds = %loop.head
18 exit: ; preds = %loop.head