[llvm] [VPlan] Also expand integer SCEVAddExpr in expandSCEVExpr. (PR #200925)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 3 12:54:41 PDT 2026


================
@@ -5275,10 +5275,15 @@ void VPlanTransforms::materializeAliasMaskCheckBlock(
 }
 
 void VPlanTransforms::expandSCEVsToVPInstructions(VPlan &Plan,
-                                                  ScalarEvolution &SE) {
+                                                  ScalarEvolution &SE,
+                                                  DominatorTree *DT) {
   auto *Entry = Plan.getEntry();
   VPBuilder Builder(Entry, Entry->begin());
-  VPSCEVExpander Expander(Builder, SE);
+  DebugLoc DL = cast<VPIRBasicBlock>(Entry)
+                    ->getIRBasicBlock()
+                    ->getTerminator()
+                    ->getDebugLoc();
----------------
artagnon wrote:

Hm, is the terminator instruction's DL the correct DebugLoc? Maybe best to remove the DebugLoc argument and hardcode Unknown or CompilerGenerated?

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


More information about the llvm-commits mailing list