aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ExecutionEngine/Orc/SelfExecutorProcessControl.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2025-10-06 22:16:08 +0100
committerGitHub <noreply@github.com>2025-10-06 22:16:08 +0100
commit74af5784a570914271a258618bf6f7cb06c50241 (patch)
treea90a4425e1bcf342595ebaee050875fd57f1f6a0 /llvm/lib/ExecutionEngine/Orc/SelfExecutorProcessControl.cpp
parentc830c843ab249940811f0bb15924ec94a7b01538 (diff)
downloadllvm-74af5784a570914271a258618bf6f7cb06c50241.zip
llvm-74af5784a570914271a258618bf6f7cb06c50241.tar.gz
llvm-74af5784a570914271a258618bf6f7cb06c50241.tar.bz2
Reapply "[VPlan] Compute cost of more replicating loads/stores in ::computeCost. (#160053)" (#162157)
This reverts commit f80c0baf058dbdc5 and 94eade61a02ae5. Recommit a small fix for targets using prefersVectorizedAddressing. Original message: Update VPReplicateRecipe::computeCost to compute costs of more replicating loads/stores. There are 2 cases that require extra checks to match the legacy cost model: 1. If the pointer is based on an induction, the legacy cost model passes its SCEV to getAddressComputationCost. In those cases, still fall back to the legacy cost. SCEV computations will be added as follow-up 2. If a load is used as part of an address of another load, the legacy cost model skips the scalarization overhead. Those cases are currently handled by a usedByLoadOrStore helper. Note that getScalarizationOverhead also needs updating, because when the legacy cost model computes the scalarization overhead, scalars have not been collected yet, so we can't each for replicating recipes to skip their cost, except other loads. This again can be further improved by modeling inserts/extracts explicitly and consistently, and compute costs for those operations directly where needed. PR: https://github.com/llvm/llvm-project/pull/160053
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc/SelfExecutorProcessControl.cpp')
0 files changed, 0 insertions, 0 deletions