@@ -633,7 +633,7 @@ void GenXPatternMatch::visitICmpInst(ICmpInst &I) {
633
633
BC->setDebugLoc (I.getDebugLoc ());
634
634
635
635
// Create the new rdregion.
636
- vc::Region R (BC);
636
+ vc::Region R (BC, DL );
637
637
R.NumElements = NElts;
638
638
R.Stride = Stride;
639
639
R.Width = NElts;
@@ -2262,7 +2262,7 @@ bool GenXPatternMatch::propagateFoldableRegion(Function *F) {
2262
2262
if (WII->getOperand (1 ) != Mul)
2263
2263
continue ;
2264
2264
auto W = makeRegionFromBaleInfo (WII, BaleInfo ());
2265
- vc::Region V (Mul);
2265
+ vc::Region V (Mul, DL );
2266
2266
// TODO: Consider the broadcast and similar cases.
2267
2267
if (!W.isStrictlySimilar (V))
2268
2268
continue ;
@@ -2439,7 +2439,7 @@ bool GenXPatternMatch::simplifyWrRegion(CallInst *Inst) {
2439
2439
IRBuilder<> B (Inst);
2440
2440
NewV = B.CreateBitCast (NewV, IGCLLVM::FixedVectorType::get (NewVTy, 1 ));
2441
2441
}
2442
- vc::Region R (Inst->getType ());
2442
+ vc::Region R (Inst->getType (), DL );
2443
2443
R.Width = R.NumElements ;
2444
2444
R.Stride = 0 ;
2445
2445
NewV = R.createRdRegion (NewV, " splat" , Inst, Inst->getDebugLoc (),
@@ -3446,15 +3446,15 @@ bool GenXPatternMatch::vectorizeConstants(Function *F) {
3446
3446
IRBuilder<> Builder (Inst);
3447
3447
unsigned Width = cast<IGCLLVM::FixedVectorType>(ShtAmt[0 ]->getType ())
3448
3448
->getNumElements ();
3449
- vc::Region R (C->getType ());
3449
+ vc::Region R (C->getType (), DL );
3450
3450
R.getSubregion (0 , Width);
3451
3451
Value *Val = UndefValue::get (C->getType ());
3452
3452
Val = R.createWrRegion (Val, Base, " " , Inst, Inst->getDebugLoc ());
3453
3453
for (unsigned j = 1 ; j < (unsigned )ShtAmt.size (); ++j) {
3454
3454
auto Opc = C->getType ()->isFPOrFPVectorTy () ? Instruction::FAdd
3455
3455
: Instruction::Add;
3456
3456
auto Input = Builder.CreateBinOp (Opc, Base, ShtAmt[j]);
3457
- vc::Region R1 (C->getType ());
3457
+ vc::Region R1 (C->getType (), DL );
3458
3458
R1.getSubregion (Width * j, Width);
3459
3459
Val = R1.createWrRegion (Val, Input, " " , Inst, Inst->getDebugLoc ());
3460
3460
}
0 commit comments