Displaying 1 result from an estimated 1 matches for "ewhil".
Did you mean:
ezhil
2011 Jun 18
1
[LLVMdev] loop only executes once
...gX, 2
br i1 %cond, label %IF, label %Else
IF: ; preds = %EntryBlock
ret i32 1
Else: ; preds = %while, %
EntryBlock
%PD = load i32* %D
%cond1 = icmp sgt i32 %PD, 2
br i1 %cond1, label %while, label %ewhile
while: ; preds = %Else
%pA = load i32* %A
%pB = load i32* %B
%addab = add i32 %pA, %pB
store i32 %addab, i32* %C
store i32 %pA, i32* %B
store i32 %addab, i32* %A
%sub = sub i32 %PD, 1
store i32 %sub, i32* %D
br label %Else
ewhile:...