Displaying 4 results from an estimated 4 matches for "numconvertedto3addr".
2013 Sep 17
2
[LLVMdev] Codegen performance issue: LEA vs. INC.
...(MI.isConvertibleTo3Addr()) {
// This instruction is potentially convertible to a true
// three-address instruction. Check if it is profitable.
if (!regBKilled || isProfitableToConv3Addr(regA, regB)) {
// Try to convert it.
if (convertInstTo3Addr(mi, nmi, regA, regB, Dist)) {
++NumConvertedTo3Addr;
return true; // Done with this instruction.
}
}
}
regBKilled is false for my test case and isProfitableToConv3Addr is not even called.
I've made an experiment and left only
if (isProfitableToConv3Addr(regA, regB)) {
That gave me test.inc.s where lea replaced with inc+mov and thi...
2013 Oct 02
0
[LLVMdev] Codegen performance issue: LEA vs. INC.
...n is potentially convertible to a true
>
> // three-address instruction. Check if it is profitable.
>
> if (!regBKilled || isProfitableToConv3Addr(regA, regB)) {
>
> // Try to convert it.
>
> if (convertInstTo3Addr(mi, nmi, regA, regB, Dist)) {
>
> ++NumConvertedTo3Addr;
>
> return true; // Done with this instruction.
>
> }
>
> }
>
> }
>
>
>
> regBKilled is false for my test case and isProfitableToConv3Addr is not even
> called.
>
> I’ve made an experiment and left only
>
>
>
> if (isProfitableTo...
2013 Oct 03
2
[LLVMdev] Codegen performance issue: LEA vs. INC.
...gt;>
>> // three-address instruction. Check if it is profitable.
>>
>> if (!regBKilled || isProfitableToConv3Addr(regA, regB)) {
>>
>> // Try to convert it.
>>
>> if (convertInstTo3Addr(mi, nmi, regA, regB, Dist)) {
>>
>> ++NumConvertedTo3Addr;
>>
>> return true; // Done with this instruction.
>>
>> }
>>
>> }
>>
>> }
>>
>>
>>
>> regBKilled is false for my test case and isProfitableToConv3Addr is not even
>> called.
>>
>> I’ve made a...
2013 Oct 05
0
[LLVMdev] Codegen performance issue: LEA vs. INC.
...address instruction. Check if it is profitable.
>>>
>>> if (!regBKilled || isProfitableToConv3Addr(regA, regB)) {
>>>
>>> // Try to convert it.
>>>
>>> if (convertInstTo3Addr(mi, nmi, regA, regB, Dist)) {
>>>
>>> ++NumConvertedTo3Addr;
>>>
>>> return true; // Done with this instruction.
>>>
>>> }
>>>
>>> }
>>>
>>> }
>>>
>>>
>>>
>>> regBKilled is false for my test case and isProfitableToConv3Addr is not even
&g...