[llvm] [NFC][LoopVectorize] Avoid passing ScalarEvolution to VPlanTransforms::optimize (PR #108380)
Paul Walker via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 12 09:12:25 PDT 2024
================
@@ -535,8 +535,7 @@ createScalarIVSteps(VPlan &Plan, InductionDescriptor::InductionKind Kind,
}
// Truncate base induction if needed.
- VPTypeAnalysis TypeInfo(Plan.getCanonicalIV()->getScalarType(),
- SE.getContext());
+ VPTypeAnalysis TypeInfo(Plan.getCanonicalIV()->getScalarType(), Ctx);
----------------
paulwalker-arm wrote:
Would it be safe to use `Plan.getCanonicalIV()->getScalarType()->getContext` here as done by `willGenerateVectors`?
https://github.com/llvm/llvm-project/pull/108380
More information about the llvm-commits
mailing list