Displaying 5 results from an estimated 5 matches for "afterfor".
Did you mean:
after_fork
2009 Jan 08
2
[LLVMdev] Loop elimination with floating point counter.
...ds = %forinc, %entry
%i.0.reg2mem.0 = phi float [ 0.000000e+00, %entry ], [ %add, %forinc
] ; <float> [#uses=1]
%add = add float %i.0.reg2mem.0, 0x3FF3333340000000 ; <float> [#uses=2]
%cmp = fcmp olt float %add, 1.000000e+03 ; <i1> [#uses=1]
br i1 %cmp, label %forinc, label %afterfor
afterfor: ; preds = %forinc
ret void
}
What I expected is just one instruction "ret void" in function "func".
Should I specify some specific optimizer pass for opt?
If so, what is the right optimization pass to specify for opt to
remove dead loop with floating point counter...
2009 Jan 08
0
[LLVMdev] Loop elimination with floating point counter.
...reg2mem.0 = phi float [ 0.000000e+00, %entry ], [ %add, %forinc
> ] ; <float> [#uses=1]
> %add = add float %i.0.reg2mem.0, 0x3FF3333340000000 ; <float>
> [#uses=2]
> %cmp = fcmp olt float %add, 1.000000e+03 ; <i1> [#uses=1]
> br i1 %cmp, label %forinc, label %afterfor
>
> afterfor: ; preds = %forinc
> ret void
> }
>
> What I expected is just one instruction "ret void" in function "func".
>
> Should I specify some specific optimizer pass for opt?
> If so, what is the right optimization pass to specify for opt to
&g...
2009 Jan 08
2
[LLVMdev] Loop elimination with floating point counter.
...c
>> ] ; <float> [#uses=1]
>> %add = add float %i.0.reg2mem.0, 0x3FF3333340000000 ; <float>
>> [#uses=2]
>> %cmp = fcmp olt float %add, 1.000000e+03 ; <i1> [#uses=1]
>> br i1 %cmp, label %forinc, label %afterfor
>>
>> afterfor: ; preds = %forinc
>> ret void
>> }
>>
>> What I expected is just one instruction "ret void" in function "func".
>>
>> Should I specify some specific optimizer pass for opt?
>> If so, what is...
2009 Jan 08
0
[LLVMdev] Loop elimination with floating point counter.
...>>> %add = add float %i.0.reg2mem.0,
>>> 0x3FF3333340000000 ; <float>
>>> [#uses=2]
>>> %cmp = fcmp olt float %add, 1.000000e+03 ;
>>> <i1> [#uses=1]
>>> br i1 %cmp, label %forinc, label %afterfor
>>>
>>> afterfor: ; preds = %forinc
>>> ret void
>>> }
>>>
>>> What I expected is just one instruction "ret void" in function
>>> "func".
>>>
>>> Should I specify some specific op...
2008 Jul 21
6
[LLVMdev] LICM/store-aliasing of global loads
...) {
entry:
br label %forcond
forcond: ; preds = %forinc, %entry
%i.0 = phi i32 [ 0, %entry ], [ %inc, %forinc ] ;
<i32> [#uses=4]
%cmp = icmp ult i32 %i.0, %count ; <i1> [#uses=1]
br i1 %cmp, label %forbody, label %afterfor
forbody: ; preds = %forcond
%tmp3 = load float** @b ; <float*> [#uses=1]
%arrayidx = getelementptr float* %tmp3, i32 %i.
0 ; <float*> [#uses=1]
%tmp5 = load float** @a ; <float*> [#uses=1]
%arrayidx6 =...