@@ -3206,10 +3206,11 @@ class LLVM_ABI_FOR_TEST VPWidenMemoryRecipe : public VPRecipeBase,
32063206
32073207 VPWidenMemoryRecipe (const char unsigned SC, Instruction &I,
32083208 std::initializer_list<VPValue *> Operands,
3209- bool Consecutive, bool Reverse, Align Alignment,
3209+ bool Consecutive, bool Reverse,
32103210 const VPIRMetadata &Metadata, DebugLoc DL)
32113211 : VPRecipeBase(SC, Operands, DL), VPIRMetadata(Metadata), Ingredient(I),
3212- Alignment (Alignment), Consecutive(Consecutive), Reverse(Reverse) {
3212+ Alignment (getLoadStoreAlignment(&I)), Consecutive(Consecutive),
3213+ Reverse(Reverse) {
32133214 assert ((Consecutive || !Reverse) && " Reverse implies consecutive" );
32143215 assert (isa<VPVectorEndPointerRecipe>(getAddr ()) ||
32153216 !Reverse &&
@@ -3273,18 +3274,18 @@ class LLVM_ABI_FOR_TEST VPWidenMemoryRecipe : public VPRecipeBase,
32733274struct LLVM_ABI_FOR_TEST VPWidenLoadRecipe final : public VPWidenMemoryRecipe,
32743275 public VPValue {
32753276 VPWidenLoadRecipe (LoadInst &Load, VPValue *Addr, VPValue *Mask,
3276- bool Consecutive, bool Reverse, Align Alignment,
3277+ bool Consecutive, bool Reverse,
32773278 const VPIRMetadata &Metadata, DebugLoc DL)
32783279 : VPWidenMemoryRecipe(VPDef::VPWidenLoadSC, Load, {Addr}, Consecutive,
3279- Reverse, Alignment, Metadata, DL),
3280+ Reverse, Metadata, DL),
32803281 VPValue (this , &Load) {
32813282 setMask (Mask);
32823283 }
32833284
32843285 VPWidenLoadRecipe *clone () override {
32853286 return new VPWidenLoadRecipe (cast<LoadInst>(Ingredient), getAddr (),
3286- getMask (), Consecutive, Reverse, getAlign () ,
3287- * this , getDebugLoc ());
3287+ getMask (), Consecutive, Reverse, * this ,
3288+ getDebugLoc ());
32883289 }
32893290
32903291 VP_CLASSOF_IMPL (VPDef::VPWidenLoadSC);
@@ -3315,8 +3316,8 @@ struct VPWidenLoadEVLRecipe final : public VPWidenMemoryRecipe, public VPValue {
33153316 VPWidenLoadEVLRecipe (VPWidenLoadRecipe &L, VPValue *Addr, VPValue &EVL,
33163317 VPValue *Mask)
33173318 : VPWidenMemoryRecipe(VPDef::VPWidenLoadEVLSC, L.getIngredient(),
3318- {Addr, &EVL}, L.isConsecutive(), L.isReverse(),
3319- L.getAlign(), L, L. getDebugLoc()),
3319+ {Addr, &EVL}, L.isConsecutive(), L.isReverse(), L,
3320+ L.getDebugLoc()),
33203321 VPValue (this , &getIngredient ()) {
33213322 setMask (Mask);
33223323 }
@@ -3354,16 +3355,16 @@ struct VPWidenLoadEVLRecipe final : public VPWidenMemoryRecipe, public VPValue {
33543355struct LLVM_ABI_FOR_TEST VPWidenStoreRecipe final : public VPWidenMemoryRecipe {
33553356 VPWidenStoreRecipe (StoreInst &Store, VPValue *Addr, VPValue *StoredVal,
33563357 VPValue *Mask, bool Consecutive, bool Reverse,
3357- Align Alignment, const VPIRMetadata &Metadata, DebugLoc DL)
3358+ const VPIRMetadata &Metadata, DebugLoc DL)
33583359 : VPWidenMemoryRecipe(VPDef::VPWidenStoreSC, Store, {Addr, StoredVal},
3359- Consecutive, Reverse, Alignment, Metadata, DL) {
3360+ Consecutive, Reverse, Metadata, DL) {
33603361 setMask (Mask);
33613362 }
33623363
33633364 VPWidenStoreRecipe *clone () override {
33643365 return new VPWidenStoreRecipe (cast<StoreInst>(Ingredient), getAddr (),
33653366 getStoredValue (), getMask (), Consecutive,
3366- Reverse, getAlign (), *this , getDebugLoc ());
3367+ Reverse, *this , getDebugLoc ());
33673368 }
33683369
33693370 VP_CLASSOF_IMPL (VPDef::VPWidenStoreSC);
@@ -3398,7 +3399,7 @@ struct VPWidenStoreEVLRecipe final : public VPWidenMemoryRecipe {
33983399 VPValue *Mask)
33993400 : VPWidenMemoryRecipe(VPDef::VPWidenStoreEVLSC, S.getIngredient(),
34003401 {Addr, S.getStoredValue (), &EVL}, S.isConsecutive(),
3401- S.isReverse(), S.getAlign(), S , S.getDebugLoc()) {
3402+ S.isReverse(), S, S.getDebugLoc()) {
34023403 setMask (Mask);
34033404 }
34043405
0 commit comments