[llvm] [NFC][LoopVectorize] Avoid passing ScalarEvolution to VPlanTransforms::optimize (PR #108380)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 13 01:47:07 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);
----------------
fhahn wrote:

Yep that should be safe

https://github.com/llvm/llvm-project/pull/108380


More information about the llvm-commits mailing list