@@ -1170,8 +1170,8 @@ TEST_F(VPRecipeTest, MayHaveSideEffectsAndMayReadWriteMemory) {
1170
1170
VPValue *ChainOp = Plan.getOrAddLiveIn (ConstantInt::get (Int32, 1 ));
1171
1171
VPValue *VecOp = Plan.getOrAddLiveIn (ConstantInt::get (Int32, 2 ));
1172
1172
VPValue *CondOp = Plan.getOrAddLiveIn (ConstantInt::get (Int32, 3 ));
1173
- VPReductionRecipe Recipe (RecurrenceDescriptor (), Add, ChainOp, CondOp ,
1174
- VecOp, false );
1173
+ VPReductionRecipe Recipe (RecurKind::Add, FastMathFlags (), Add, ChainOp,
1174
+ CondOp, VecOp, false );
1175
1175
EXPECT_FALSE (Recipe.mayHaveSideEffects ());
1176
1176
EXPECT_FALSE (Recipe.mayReadFromMemory ());
1177
1177
EXPECT_FALSE (Recipe.mayWriteToMemory ());
@@ -1185,8 +1185,8 @@ TEST_F(VPRecipeTest, MayHaveSideEffectsAndMayReadWriteMemory) {
1185
1185
VPValue *ChainOp = Plan.getOrAddLiveIn (ConstantInt::get (Int32, 1 ));
1186
1186
VPValue *VecOp = Plan.getOrAddLiveIn (ConstantInt::get (Int32, 2 ));
1187
1187
VPValue *CondOp = Plan.getOrAddLiveIn (ConstantInt::get (Int32, 3 ));
1188
- VPReductionRecipe Recipe (RecurrenceDescriptor (), Add, ChainOp, CondOp ,
1189
- VecOp, false );
1188
+ VPReductionRecipe Recipe (RecurKind::Add, FastMathFlags (), Add, ChainOp,
1189
+ CondOp, VecOp, false );
1190
1190
VPValue *EVL = Plan.getOrAddLiveIn (ConstantInt::get (Int32, 4 ));
1191
1191
VPReductionEVLRecipe EVLRecipe (Recipe, *EVL, CondOp);
1192
1192
EXPECT_FALSE (EVLRecipe.mayHaveSideEffects ());
@@ -1540,8 +1540,8 @@ TEST_F(VPRecipeTest, CastVPReductionRecipeToVPUser) {
1540
1540
VPValue *ChainOp = getPlan ().getOrAddLiveIn (ConstantInt::get (Int32, 1 ));
1541
1541
VPValue *VecOp = getPlan ().getOrAddLiveIn (ConstantInt::get (Int32, 2 ));
1542
1542
VPValue *CondOp = getPlan ().getOrAddLiveIn (ConstantInt::get (Int32, 3 ));
1543
- VPReductionRecipe Recipe (RecurrenceDescriptor (), Add, ChainOp, CondOp, VecOp ,
1544
- false );
1543
+ VPReductionRecipe Recipe (RecurKind::Add, FastMathFlags (), Add, ChainOp,
1544
+ CondOp, VecOp, false );
1545
1545
EXPECT_TRUE (isa<VPUser>(&Recipe));
1546
1546
VPRecipeBase *BaseR = &Recipe;
1547
1547
EXPECT_TRUE (isa<VPUser>(BaseR));
@@ -1555,8 +1555,8 @@ TEST_F(VPRecipeTest, CastVPReductionEVLRecipeToVPUser) {
1555
1555
VPValue *ChainOp = getPlan ().getOrAddLiveIn (ConstantInt::get (Int32, 1 ));
1556
1556
VPValue *VecOp = getPlan ().getOrAddLiveIn (ConstantInt::get (Int32, 2 ));
1557
1557
VPValue *CondOp = getPlan ().getOrAddLiveIn (ConstantInt::get (Int32, 3 ));
1558
- VPReductionRecipe Recipe (RecurrenceDescriptor (), Add, ChainOp, CondOp, VecOp ,
1559
- false );
1558
+ VPReductionRecipe Recipe (RecurKind::Add, FastMathFlags (), Add, ChainOp,
1559
+ CondOp, VecOp, false );
1560
1560
VPValue *EVL = getPlan ().getOrAddLiveIn (ConstantInt::get (Int32, 0 ));
1561
1561
VPReductionEVLRecipe EVLRecipe (Recipe, *EVL, CondOp);
1562
1562
EXPECT_TRUE (isa<VPUser>(&EVLRecipe));
0 commit comments