mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-14 07:31:39 +00:00
BBVectorize: Use TTI->getAddressComputationCost
This is a follow-up to the cost-model change in r174713 which splits the cost of a memory operation between the address computation and the actual memory access. In r174713, this cost is always added to the memory operation cost, and so BBVectorize will do the same. Currently, this new cost function is used only by ARM, and I don't have any ARM test cases for BBVectorize. Assistance in generating some good ARM test cases for BBVectorize would be greatly appreciated! llvm-svn: 174743
This commit is contained in:
parent
d00b56718d
commit
2e1d39a40e
@ -972,6 +972,11 @@ namespace {
|
||||
unsigned VCost = TTI->getMemoryOpCost(I->getOpcode(), VType,
|
||||
BottomAlignment,
|
||||
IAddressSpace);
|
||||
|
||||
ICost += TTI->getAddressComputationCost(aTypeI);
|
||||
JCost += TTI->getAddressComputationCost(aTypeJ);
|
||||
VCost += TTI->getAddressComputationCost(VType);
|
||||
|
||||
if (VCost > ICost + JCost)
|
||||
return false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user