• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt < %s -simplifycfg -disable-output
2; PR 2800
3
4define void @foo() {
5start:
6	%tmp = call i1 @bar( )		; <i1> [#uses=4]
7	br i1 %tmp, label %brtrue, label %brfalse
8
9brtrue:		; preds = %start
10	%tmpnew = and i1 %tmp, %tmp		; <i1> [#uses=1]
11	br label %brfalse
12
13brfalse:		; preds = %brtrue, %start
14	%andandtmp.0 = phi i1 [ %tmp, %start ], [ %tmpnew, %brtrue ]		; <i1> [#uses=0]
15	ret void
16}
17
18declare i1 @bar()
19