diff options
Diffstat (limited to 'llvm/unittests/Transforms')
-rw-r--r-- | llvm/unittests/Transforms/Vectorize/VPlanHCFGTest.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/unittests/Transforms/Vectorize/VPlanHCFGTest.cpp b/llvm/unittests/Transforms/Vectorize/VPlanHCFGTest.cpp index f5894a4f10f..2b15e627058 100644 --- a/llvm/unittests/Transforms/Vectorize/VPlanHCFGTest.cpp +++ b/llvm/unittests/Transforms/Vectorize/VPlanHCFGTest.cpp @@ -89,8 +89,8 @@ TEST_F(VPlanHCFGTest, testBuildHCFGInnerLoop) { LoopVectorizationLegality::InductionList Inductions; SmallPtrSet<Instruction *, 1> DeadInstructions; - VPlanHCFGTransforms::VPInstructionsToVPRecipes(Plan, &Inductions, - DeadInstructions); + VPlanHCFGTransforms::VPInstructionsToVPRecipes( + LI->getLoopFor(LoopHeader), Plan, &Inductions, DeadInstructions); } TEST_F(VPlanHCFGTest, testVPInstructionToVPRecipesInner) { @@ -119,8 +119,8 @@ TEST_F(VPlanHCFGTest, testVPInstructionToVPRecipesInner) { LoopVectorizationLegality::InductionList Inductions; SmallPtrSet<Instruction *, 1> DeadInstructions; - VPlanHCFGTransforms::VPInstructionsToVPRecipes(Plan, &Inductions, - DeadInstructions); + VPlanHCFGTransforms::VPInstructionsToVPRecipes( + LI->getLoopFor(LoopHeader), Plan, &Inductions, DeadInstructions); VPBlockBase *Entry = Plan->getEntry()->getEntryBasicBlock(); EXPECT_NE(nullptr, Entry->getSingleSuccessor()); @@ -136,7 +136,7 @@ TEST_F(VPlanHCFGTest, testVPInstructionToVPRecipesInner) { auto *Phi = dyn_cast<VPWidenPHIRecipe>(&*Iter++); EXPECT_NE(nullptr, Phi); - auto *Idx = dyn_cast<VPWidenRecipe>(&*Iter++); + auto *Idx = dyn_cast<VPWidenGEPRecipe>(&*Iter++); EXPECT_NE(nullptr, Idx); auto *Load = dyn_cast<VPWidenMemoryInstructionRecipe>(&*Iter++); |