diff options
author | Florian Hahn <flo@fhahn.com> | 2024-07-07 20:08:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-07 20:08:01 +0100 |
commit | 29b8b72117845dc3d20e70fbfa85c590fa9c7830 (patch) | |
tree | 6c429e4ff21c3416b1be83655debea71484967b2 /llvm/lib/IR/Module.cpp | |
parent | 7f3c40a6613346a4ea856c1462de4fca12dc4fef (diff) | |
download | llvm-29b8b72117845dc3d20e70fbfa85c590fa9c7830.zip llvm-29b8b72117845dc3d20e70fbfa85c590fa9c7830.tar.gz llvm-29b8b72117845dc3d20e70fbfa85c590fa9c7830.tar.bz2 |
[LV] Move check if any vector insts will be generated to VPlan. (#96622)
This patch moves the check if any vector instructions will be generated
from getInstructionCost to be based on VPlan. This simplifies
getInstructionCost, is more accurate as we check the final result and
also allows us to exit early once we visit a recipe that generates
vector instructions.
The helper can then be re-used by the VPlan-based cost model to match
the legacy selectVectorizationFactor behavior, this fixing a crash and
paving the way to recommit
https://github.com/llvm/llvm-project/pull/92555.
PR: https://github.com/llvm/llvm-project/pull/96622
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions