[llvm] [VPlan] Extend getSCEVForVPV, use to compute VPReplicateRecipe cost. (PR #161276)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 3 06:08:27 PDT 2025
================
@@ -3071,23 +3071,24 @@ bool VPReplicateRecipe::shouldPack() const {
/// Returns true if \p Ptr is a pointer computation for which the legacy cost
/// model computes a SCEV expression when computing the address cost.
-static bool shouldUseAddressAccessSCEV(const VPValue *Ptr) {
+static const SCEV *getAddressAccessSCEV(const VPValue *Ptr, ScalarEvolution &SE,
----------------
fhahn wrote:
This is to match the logic in the legacy cost model for now, as it only passes SCEV expressions through to TTI in some cases.
https://github.com/llvm/llvm-project/pull/161276
More information about the llvm-commits
mailing list