brintos

brintos / llvm-project-archived public Read only

0
0
Text · 335 B · 3723e75 Raw
16 lines · plain
1; LICM is adding stores before phi nodes.  bad.2 3; RUN: opt < %s -passes=licm4 5define i1 @test(i1 %c) {6; <label>:07	br i1 %c, label %Loop, label %Out8Loop:		; preds = %Loop, %09	store i32 0, ptr null10	br i1 %c, label %Loop, label %Out11Out:		; preds = %Loop, %012	%X = phi i1 [ %c, %0 ], [ true, %Loop ]		; <i1> [#uses=1]13	ret i1 %X14}15 16