aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2024-07-27 12:52:12 +0100
committerGitHub <noreply@github.com>2024-07-27 12:52:12 +0100
commit66ce4f771ee294fc4a2e0ead86976fc731ff5d87 (patch)
tree56287f9206aa72ecd8d1ebee9f2ae6b89a5586f8 /clang/lib/CodeGen/CodeGenFunction.cpp
parentf2d2ae3f5a8e45c1386bf71e403d78cfee52cb7b (diff)
downloadllvm-66ce4f771ee294fc4a2e0ead86976fc731ff5d87.zip
llvm-66ce4f771ee294fc4a2e0ead86976fc731ff5d87.tar.gz
llvm-66ce4f771ee294fc4a2e0ead86976fc731ff5d87.tar.bz2
[VPlan] Port invalid cost remarks to VPlan. (#99322)
This patch moves the logic to create remarks for instructions with invalid costs to work on recipes and decoupling it from selectVectorizationFactor. This is needed to replace the remaining uses of selectVectorizationFactor with getBestPlan using the VPlan-based cost model. The current implementation iterates over all VPlans and their recipes again, to find recipes with invalid costs, which is more work but will only be done when remarks for LV are enabled. Once the remaining uses of selectVectorizationFactor are retired, we can collect VPlans with invalid costs as part of getBestPlan if we want to optimize the remarks case a bit, at the cost of adding additional complexity. PR: https://github.com/llvm/llvm-project/pull/99322
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions