Displaying 5 results from an estimated 5 matches for "addreccost".
2013 Mar 13
2
[LLVMdev] Suggestion About Adding Target Dependent Decision in LSR Please
...the most occurred
register
because the less opportunity in a combination.
For the case two, by observing the cost comparison equation
bool Cost::operator<(const Cost &Other) const {
if (NumRegs != Other.NumRegs) return NumRegs <
Other.NumRegs;
if (AddRecCost != Other.AddRecCost) return AddRecCost <
Other.AddRecCost;
if (NumIVMuls != Other.NumIVMuls) return NumIVMuls <
Other.NumIVMuls;
if (NumBaseAdds != Other.NumBaseAdds) return NumBaseAdds <
Other.NumBaseAdds;
if (ImmCost != Other.ImmCost)...
2013 Mar 14
3
[LLVMdev] Suggestion About Adding Target Dependent Decision in LSR Please
...the winner
reg from target and winner reg from the original algorithm if this function
returns NULL, it is just like before
For case two, we can define a general cost from TTI function, like
virtual int getLSRFormulaCost(const unsigned NumRegs,
const unsigned AddRecCost, const unsigned
NumIVMuls,
const unsigned NumBaseAdds, const unsigned
ImmCost,
const unsigned SetupCost) const;
Then we do something like
int thisCost = TTI->getLSRFormulaCost(NumRegs, AddRecCost, NumIVMuls,...
2013 Mar 14
0
[LLVMdev] Suggestion About Adding Target Dependent Decision in LSR Please
...ister
> because the less opportunity in a combination.
>
> For the case two, by observing the cost comparison equation
> bool Cost::operator<(const Cost &Other) const {
> if (NumRegs != Other.NumRegs) return NumRegs < Other.NumRegs;
> if (AddRecCost != Other.AddRecCost) return AddRecCost < Other.AddRecCost;
> if (NumIVMuls != Other.NumIVMuls) return NumIVMuls < Other.NumIVMuls;
> if (NumBaseAdds != Other.NumBaseAdds) return NumBaseAdds < Other.NumBaseAdds;
> if (ImmCost != Other....
2013 Mar 14
0
[LLVMdev] Suggestion About Adding Target Dependent Decision in LSR Please
...arget and winner reg from the original algorithm if this
> function
>
> returns NULL, it is just like before
>
>
>
> For case two, we can define a general cost from TTI function, like
>
> virtual int getLSRFormulaCost(const unsigned NumRegs,
>
> const unsigned AddRecCost, const unsigned NumIVMuls,
>
> const unsigned NumBaseAdds, const unsigned ImmCost,
>
> const unsigned SetupCost) const;
>
> Then we do something like
>
> int thisCost = TTI->getLSRFormulaCost(NumRegs, AddRecCost, NumIVMuls,
>
> NumBaseAdds, ImmCost, SetupCost);...
2013 Mar 15
0
[LLVMdev] Problems about developing LLVM pass on windows visual studio
...g from the original algorithm if this function
>
> returns NULL, it is just like before
>
>
>
> For case two, we can define a general cost from TTI function, like
>
> virtual int getLSRFormulaCost(const unsigned NumRegs,
>
> const unsigned AddRecCost, const unsigned
> NumIVMuls,
>
> const unsigned NumBaseAdds, const unsigned
> ImmCost,
>
> const unsigned SetupCost) const;
>
> Then we do something like
>
> int thisCost = TTI->getLSRFormulaCost(NumRegs, Add...