[PowerPC] Make PPCTTI::getMemoryOpCost call BasicTTI::getMemoryOpCost
authorHal Finkel <hfinkel@anl.gov>
Wed, 2 Apr 2014 22:43:49 +0000 (22:43 +0000)
committerHal Finkel <hfinkel@anl.gov>
Wed, 2 Apr 2014 22:43:49 +0000 (22:43 +0000)
commitf823380a444eb1f577176b027485623d252789f5
treecdaec65c34b645d819ce7dc1f9e47b67d3c5ea4b
parent63d3a54980877d6a5008f9f40a7ac31938812993
[PowerPC] Make PPCTTI::getMemoryOpCost call BasicTTI::getMemoryOpCost

PPCTTI::getMemoryOpCost will now make use of BasicTTI::getMemoryOpCost to
calculate the base cost of the memory access, and then adjust on top of that.
There is no functionality change from this modification, but it will become
important so that PPCTTI can take advantage of scalarization information for which
BasicTTI::getMemoryOpCost will account in the near future.

llvm-svn: 205476
llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp