blob: 50f0d1aeccbdf4ed68b6ac69d73819ba98edb5d1 [file] [log] [blame]
Dan Gohman5bb7c7c2009-09-08 22:34:10 +00001; RUN: opt < %s -sccp -S | not grep phi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
3define i999 @test(i999%A, i1 %c) {
4bb1:
5 br label %BB2
6BB2:
7 %V = phi i999 [2, %bb1], [%A, %BB4]
8 br label %BB3
9
10BB3:
11 %E = trunc i999 %V to i1
12 %F = and i1 %E, %c
13 br i1 %F, label %BB4, label %BB5
14BB4:
15 br label %BB2
16
17BB5:
18 ret i999 %V
19}