diff options
author | Quentin Colombet <qcolombet@apple.com> | 2015-03-10 21:48:15 +0000 |
---|---|---|
committer | Quentin Colombet <qcolombet@apple.com> | 2015-03-10 21:48:15 +0000 |
commit | 1b274f99ad3caf1576d1915ee2b865e70256b493 (patch) | |
tree | f0d0f7e9c57212653aa1d42399d2695cb85fc74d /llvm/lib/MC/MCObjectFileInfo.cpp | |
parent | 4bb90a71de35edc631cba1aaaf8baad2fda46cdd (diff) | |
download | llvm-1b274f99ad3caf1576d1915ee2b865e70256b493.zip llvm-1b274f99ad3caf1576d1915ee2b865e70256b493.tar.gz llvm-1b274f99ad3caf1576d1915ee2b865e70256b493.tar.bz2 |
[CodeGenPrepare] Refine the cost model provided by the promotion helper.
- Use TargetLowering to check for the actual cost of each extension.
- Provide a factorized method to check for the cost of an extension:
TargetLowering::isExtFree.
- Provide a virtual method TargetLowering::isExtFreeImpl for targets to be able
to tune the cost of non-free extensions.
This refactoring offers a better granularity to model what really happens on
different targets.
No performance changes and very few code differences.
Part of <rdar://problem/19267165>
llvm-svn: 231855
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
0 files changed, 0 insertions, 0 deletions