Displaying 2 results from an estimated 2 matches for "untilcmp1".
Did you mean:
untilcmp2
2011 Jul 05
3
[LLVMdev] optimizer returning wrong variable?
...= %Until2
%x11 = load i32* %x
%add12 = add i32 %x11, 1
store i32 %add12, i32* %x
br label %Until1
Until1: ; preds = %Untilcmp2
%x13 = load i32* %x
%a14 = load i32* %a1
%cond15 = icmp sge i32 %x13, %a14
br i1 %cond15, label %Repeat1, label %Untilcmp1
Untilcmp1: ; preds = %Until1
%c16 = load i32* %c
ret i32 %c16
}
verifying module
Optimize Function
Run in JIT
Jit Result: = 0
should = 325
dump the optimized module
define i32 @TRU(i32 %a, i32 %b) {
Entry:
br label %Repeat1
Repeat1:...
2011 Jul 05
0
[LLVMdev] optimizer returning wrong variable?
...: ; preds = %Until2
> %x11 = load i32* %x
> %add12 = add i32 %x11, 1
> store i32 %add12, i32* %x
> br label %Until1
>
> Until1: ; preds = %Untilcmp2
> %x13 = load i32* %x
> %a14 = load i32* %a1
> %cond15 = icmp sge i32 %x13, %a14
> br i1 %cond15, label %Repeat1, label %Untilcmp1
>
> Untilcmp1: ; preds = %Until1
> %c16 = load i32* %c
> ret i32 %c16
> }
>
> verifying module
> Optimize Function
> Run in JIT
> Jit Result: = 0
> should = 325
>
> dump the optimized module
>
> define i32 @TRU(i32 %a, i32 %b) {
> Entry:
> br label...