diff options
author | Sander de Smalen <sander.desmalen@arm.com> | 2021-11-08 15:24:31 +0000 |
---|---|---|
committer | Sander de Smalen <sander.desmalen@arm.com> | 2021-11-08 16:59:46 +0000 |
commit | 2829376bb267f3364c1225ffaac8b1b8b5688ed1 (patch) | |
tree | 7f8373060997484b15f5ca356358a22a2e0b2e9d /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 59a4bbe26cfb11aca11f3992f138f86d43acb8c1 (diff) | |
download | llvm-2829376bb267f3364c1225ffaac8b1b8b5688ed1.zip llvm-2829376bb267f3364c1225ffaac8b1b8b5688ed1.tar.gz llvm-2829376bb267f3364c1225ffaac8b1b8b5688ed1.tar.bz2 |
[LV] Use VScaleForTuning to fine-tune the cost per lane.
When targeting a specific CPU with scalable vectorization, the knowledge
of that particular CPU's vscale value can be used to tune the cost-model
and make the cost per lane less pessimistic.
If the target implements 'TTI.getVScaleForTuning()', the cost-per-lane
is calculated as:
Cost / (VScaleForTuning * VF.KnownMinLanes)
Otherwise, it assumes a value of 1 meaning that the behavior
is unchanged and calculated as:
Cost / VF.KnownMinLanes
Reviewed By: kmclaughlin, david-arm
Differential Revision: https://reviews.llvm.org/D113209
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions