@@ -349,7 +349,7 @@ static VPRegionBlock *createReplicateRegion(VPReplicateRecipe *PredRecipe,
349
349
auto *BlockInMask = PredRecipe->getMask ();
350
350
auto *MaskDef = BlockInMask->getDefiningRecipe ();
351
351
auto *BOMRecipe = new VPBranchOnMaskRecipe (
352
- BlockInMask, MaskDef ? MaskDef->getDebugLoc () : DebugLoc ());
352
+ BlockInMask, MaskDef ? MaskDef->getDebugLoc () : DebugLoc::getUnknown ());
353
353
auto *Entry =
354
354
Plan.createVPBasicBlock (Twine (RegionName) + " .entry" , BOMRecipe);
355
355
@@ -864,8 +864,8 @@ static VPValue *optimizeLatchExitInductionUser(
864
864
Type *StepTy = TypeInfo.inferScalarType (Step);
865
865
auto *Zero = Plan.getOrAddLiveIn (ConstantInt::get (StepTy, 0 ));
866
866
return B.createPtrAdd (EndValue,
867
- B.createNaryOp (Instruction::Sub, {Zero, Step}), {},
868
- " ind.escape" );
867
+ B.createNaryOp (Instruction::Sub, {Zero, Step}),
868
+ DebugLoc::getUnknown (), " ind.escape" );
869
869
}
870
870
if (ScalarTy->isFloatingPointTy ()) {
871
871
const auto &ID = WideIV->getInductionDescriptor ();
@@ -2312,7 +2312,8 @@ static VPActiveLaneMaskPHIRecipe *addVPLaneMaskPhiAndUpdateExitBranch(
2312
2312
2313
2313
// Now create the ActiveLaneMaskPhi recipe in the main loop using the
2314
2314
// preheader ActiveLaneMask instruction.
2315
- auto *LaneMaskPhi = new VPActiveLaneMaskPHIRecipe (EntryALM, DebugLoc ());
2315
+ auto *LaneMaskPhi =
2316
+ new VPActiveLaneMaskPHIRecipe (EntryALM, DebugLoc::getUnknown ());
2316
2317
LaneMaskPhi->insertAfter (CanonicalIVPHI);
2317
2318
2318
2319
// Create the active lane mask for the next iteration of the loop before the
@@ -2539,11 +2540,11 @@ static void transformRecipestoEVLRecipes(VPlan &Plan, VPValue &EVL) {
2539
2540
VPBuilder Builder (LoopRegion->getPreheaderVPBB ());
2540
2541
MaxEVL = Builder.createScalarZExtOrTrunc (
2541
2542
MaxEVL, Type::getInt32Ty (Plan.getContext ()),
2542
- TypeInfo.inferScalarType (MaxEVL), DebugLoc ());
2543
+ TypeInfo.inferScalarType (MaxEVL), DebugLoc::getUnknown ());
2543
2544
2544
2545
Builder.setInsertPoint (Header, Header->getFirstNonPhi ());
2545
- VPValue *PrevEVL =
2546
- Builder. createScalarPhi ( {MaxEVL, &EVL}, DebugLoc (), " prev.evl" );
2546
+ VPValue *PrevEVL = Builder. createScalarPhi (
2547
+ {MaxEVL, &EVL}, DebugLoc::getUnknown (), " prev.evl" );
2547
2548
2548
2549
for (VPBasicBlock *VPBB : VPBlockUtils::blocksOnly<VPBasicBlock>(
2549
2550
vp_depth_first_deep (Plan.getVectorLoopRegion ()->getEntry ()))) {
@@ -2673,7 +2674,7 @@ void VPlanTransforms::addExplicitVectorLength(
2673
2674
VPValue *StartV = CanonicalIVPHI->getStartValue ();
2674
2675
2675
2676
// Create the ExplicitVectorLengthPhi recipe in the main loop.
2676
- auto *EVLPhi = new VPEVLBasedIVPHIRecipe (StartV, DebugLoc ());
2677
+ auto *EVLPhi = new VPEVLBasedIVPHIRecipe (StartV, DebugLoc::getUnknown ());
2677
2678
EVLPhi->insertAfter (CanonicalIVPHI);
2678
2679
VPBuilder Builder (Header, Header->getFirstNonPhi ());
2679
2680
// Create the AVL (application vector length), starting from TC -> 0 in steps
@@ -2687,10 +2688,11 @@ void VPlanTransforms::addExplicitVectorLength(
2687
2688
VPValue *AVLSafe =
2688
2689
Plan.getOrAddLiveIn (ConstantInt::get (CanIVTy, *MaxSafeElements));
2689
2690
VPValue *Cmp = Builder.createICmp (ICmpInst::ICMP_ULT, AVL, AVLSafe);
2690
- AVL = Builder.createSelect (Cmp, AVL, AVLSafe, DebugLoc (), " safe_avl" );
2691
+ AVL = Builder.createSelect (Cmp, AVL, AVLSafe, DebugLoc::getUnknown (),
2692
+ " safe_avl" );
2691
2693
}
2692
2694
auto *VPEVL = Builder.createNaryOp (VPInstruction::ExplicitVectorLength, AVL,
2693
- DebugLoc ());
2695
+ DebugLoc::getUnknown ());
2694
2696
2695
2697
auto *CanonicalIVIncrement =
2696
2698
cast<VPInstruction>(CanonicalIVPHI->getBackedgeValue ());
@@ -3117,8 +3119,8 @@ expandVPWidenIntOrFpInduction(VPWidenIntOrFpInductionRecipe *WidenIVR,
3117
3119
VPValue *SplatStep = Builder.createNaryOp (VPInstruction::Broadcast, Step);
3118
3120
3119
3121
Init = Builder.createNaryOp (MulOp, {Init, SplatStep}, Flags);
3120
- Init =
3121
- Builder. createNaryOp (AddOp, {SplatStart, Init}, Flags, {} , " induction" );
3122
+ Init = Builder. createNaryOp (AddOp, {SplatStart, Init}, Flags,
3123
+ DebugLoc::getUnknown () , " induction" );
3122
3124
3123
3125
// Create the widened phi of the vector IV.
3124
3126
auto *WidePHI = new VPWidenPHIRecipe (WidenIVR->getPHINode (), nullptr ,
0 commit comments