summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/Object.cpp
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2014-04-03 00:53:59 +0000
committerHal Finkel <hfinkel@anl.gov>2014-04-03 00:53:59 +0000
commit6fd19ab35e1e8ba577270556d425d312ae095e22 (patch)
tree31da6c0486bfe36414c9d0296bb9b52289d3add6 /llvm/lib/Object/Object.cpp
parent24e84d2c87835001d8cfd72137b493cade6e300d (diff)
downloadbcm5719-llvm-6fd19ab35e1e8ba577270556d425d312ae095e22.tar.gz
bcm5719-llvm-6fd19ab35e1e8ba577270556d425d312ae095e22.zip
Account for scalarization costs in BasicTTI::getMemoryOpCost for extending vector loads
When a vector type legalizes to a larger vector type, and the target does not support the associated extending load (or truncating store), then legalization will scalarize the load (or store) resulting in an associated scalarization cost. BasicTTI::getMemoryOpCost needs to account for this. Between this, and r205487, PowerPC on the P7 with VSX enabled shows: MultiSource/Benchmarks/PAQ8p/paq8p: 43% speedup SingleSource/Benchmarks/BenchmarkGame/puzzle: 51% speedup SingleSource/UnitTests/Vectorizer/gcc-loops 28% speedup (some of these are new; some of these, such as PAQ8p, just reverse regressions that VSX support would trigger) llvm-svn: 205495
Diffstat (limited to 'llvm/lib/Object/Object.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud