• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; LICM is adding stores before phi nodes.  bad.
2
3; RUN: opt < %s -licm
4
5define i1 @test(i1 %c) {
6; <label>:0
7	br i1 %c, label %Loop, label %Out
8Loop:		; preds = %Loop, %0
9	store i32 0, i32* null
10	br i1 %c, label %Loop, label %Out
11Out:		; preds = %Loop, %0
12	%X = phi i1 [ %c, %0 ], [ true, %Loop ]		; <i1> [#uses=1]
13	ret i1 %X
14}
15
16