@@ -1170,8 +1170,8 @@ TEST_F(VPRecipeTest, MayHaveSideEffectsAndMayReadWriteMemory) {
11701170 VPValue *ChainOp = Plan.getOrAddLiveIn (ConstantInt::get (Int32, 1 ));
11711171 VPValue *VecOp = Plan.getOrAddLiveIn (ConstantInt::get (Int32, 2 ));
11721172 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 );
11751175 EXPECT_FALSE (Recipe.mayHaveSideEffects ());
11761176 EXPECT_FALSE (Recipe.mayReadFromMemory ());
11771177 EXPECT_FALSE (Recipe.mayWriteToMemory ());
@@ -1185,8 +1185,8 @@ TEST_F(VPRecipeTest, MayHaveSideEffectsAndMayReadWriteMemory) {
11851185 VPValue *ChainOp = Plan.getOrAddLiveIn (ConstantInt::get (Int32, 1 ));
11861186 VPValue *VecOp = Plan.getOrAddLiveIn (ConstantInt::get (Int32, 2 ));
11871187 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 );
11901190 VPValue *EVL = Plan.getOrAddLiveIn (ConstantInt::get (Int32, 4 ));
11911191 VPReductionEVLRecipe EVLRecipe (Recipe, *EVL, CondOp);
11921192 EXPECT_FALSE (EVLRecipe.mayHaveSideEffects ());
@@ -1540,8 +1540,8 @@ TEST_F(VPRecipeTest, CastVPReductionRecipeToVPUser) {
15401540 VPValue *ChainOp = getPlan ().getOrAddLiveIn (ConstantInt::get (Int32, 1 ));
15411541 VPValue *VecOp = getPlan ().getOrAddLiveIn (ConstantInt::get (Int32, 2 ));
15421542 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 );
15451545 EXPECT_TRUE (isa<VPUser>(&Recipe));
15461546 VPRecipeBase *BaseR = &Recipe;
15471547 EXPECT_TRUE (isa<VPUser>(BaseR));
@@ -1555,8 +1555,8 @@ TEST_F(VPRecipeTest, CastVPReductionEVLRecipeToVPUser) {
15551555 VPValue *ChainOp = getPlan ().getOrAddLiveIn (ConstantInt::get (Int32, 1 ));
15561556 VPValue *VecOp = getPlan ().getOrAddLiveIn (ConstantInt::get (Int32, 2 ));
15571557 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 );
15601560 VPValue *EVL = getPlan ().getOrAddLiveIn (ConstantInt::get (Int32, 0 ));
15611561 VPReductionEVLRecipe EVLRecipe (Recipe, *EVL, CondOp);
15621562 EXPECT_TRUE (isa<VPUser>(&EVLRecipe));
0 commit comments