aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorSam Parker <sam.parker@arm.com>2020-06-15 08:58:25 +0100
committerSam Parker <sam.parker@arm.com>2020-06-15 09:28:46 +0100
commit2596da31740ff753103e5d5e47ab30bae53d3d9d (patch)
tree7faa46e363153919346a07cad18fd73d2d073ade /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent2d8f8c4de38e592eb4fcf6a4ed858763974f8b9f (diff)
downloadllvm-2596da31740ff753103e5d5e47ab30bae53d3d9d.zip
llvm-2596da31740ff753103e5d5e47ab30bae53d3d9d.tar.gz
llvm-2596da31740ff753103e5d5e47ab30bae53d3d9d.tar.bz2
[CostModel] getCFInstrCost in getUserCost.
Have BasicTTI call the base implementation so that both agree on the default behaviour, which the default being a cost of '1'. This has required an X86 specific implementation as it seems to be very reliant on those instructions being free. Changes are also made to AMDGPU so that their implementations distinguish between cost kinds, so that the unrolling isn't affected. PowerPC also has its own implementation to prevent changes to the reg-usage vectorizer test. The cost model test changes now reflect that ret instructions are not generally free. Differential Revision: https://reviews.llvm.org/D79164
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions