aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
authorSander de Smalen <sander.desmalen@arm.com>2021-07-26 17:12:51 +0100
committerSander de Smalen <sander.desmalen@arm.com>2021-07-26 20:27:49 +0100
commit13ccb097258a244498aa760b878a23de721af29f (patch)
tree4611f40169f32a7910e3ba138d61e6ff50ae1cf2 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
parente745277012ec05d1e6f980e05f2a3ea7c827eeec (diff)
downloadllvm-13ccb097258a244498aa760b878a23de721af29f.zip
llvm-13ccb097258a244498aa760b878a23de721af29f.tar.gz
llvm-13ccb097258a244498aa760b878a23de721af29f.tar.bz2
[LV] Don't let ForceTargetInstructionCost override Invalid cost.
Invalid costs can be used to avoid vectorization with a given VF, which is used for scalable vectors to avoid things that the code-generator cannot handle. If we override the cost using the -force-target-instruction-cost option of the LV, we would override this mechanism, rendering the flag useless. This change ensures the cost is only overriden when the original cost that was calculated is valid. That allows the flag to be used in combination with the -scalable-vectorization option. Reviewed By: david-arm Differential Revision: https://reviews.llvm.org/D106677
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions