blob: 7baea2e48d8a1a839918eadbb21fa4c6f29deed4 [file] [log] [blame]
Chris Lattnerd29c9f92002-05-21 19:22:10 +00001; CFG Simplification is making a loop dead, then changing the add into:
2;
3; %V1 = add int %V1, 1
4;
5; Which is not valid SSA
6;
Misha Brukmanedf4bab2003-09-16 15:29:54 +00007; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis
Chris Lattnerd29c9f92002-05-21 19:22:10 +00008
9void "test"() {
10 br bool true, label %end, label %Loop
11
12Loop:
13 %V = phi int [0, %0], [%V1, %Loop]
14 %V1 = add int %V, 1
15
16 br label %Loop
17end:
18 ret void
19}