Skip to content

Commit 440600d

Browse files
committed
[VPlan/PatternMatch] Strip VectorPointerRecipe
1 parent cbf36e2 commit 440600d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,7 @@ struct Recipe_match {
254254
// Check for recipes that do not have opcodes.
255255
if constexpr (std::is_same_v<RecipeTy, VPScalarIVStepsRecipe> ||
256256
std::is_same_v<RecipeTy, VPCanonicalIVPHIRecipe> ||
257-
std::is_same_v<RecipeTy, VPDerivedIVRecipe> ||
258-
std::is_same_v<RecipeTy, VPVectorPointerRecipe>)
257+
std::is_same_v<RecipeTy, VPDerivedIVRecipe>)
259258
return DefR;
260259
else
261260
return DefR && DefR->getOpcode() == Opcode;
@@ -526,8 +525,7 @@ m_SpecificCmp(CmpPredicate MatchPred, const Op0_t &Op0, const Op1_t &Op1) {
526525
template <typename Op0_t, typename Op1_t>
527526
using GEPLikeRecipe_match = match_combine_or<
528527
Recipe_match<std::tuple<Op0_t, Op1_t>, Instruction::GetElementPtr,
529-
/*Commutative*/ false, VPReplicateRecipe, VPWidenGEPRecipe,
530-
VPVectorPointerRecipe>,
528+
/*Commutative*/ false, VPReplicateRecipe, VPWidenGEPRecipe>,
531529
match_combine_or<
532530
VPInstruction_match<VPInstruction::PtrAdd, Op0_t, Op1_t>,
533531
VPInstruction_match<VPInstruction::WidePtrAdd, Op0_t, Op1_t>>>;
@@ -537,8 +535,8 @@ inline GEPLikeRecipe_match<Op0_t, Op1_t> m_GetElementPtr(const Op0_t &Op0,
537535
const Op1_t &Op1) {
538536
return m_CombineOr(
539537
Recipe_match<std::tuple<Op0_t, Op1_t>, Instruction::GetElementPtr,
540-
/*Commutative*/ false, VPReplicateRecipe, VPWidenGEPRecipe,
541-
VPVectorPointerRecipe>(Op0, Op1),
538+
/*Commutative*/ false, VPReplicateRecipe, VPWidenGEPRecipe>(
539+
Op0, Op1),
542540
m_CombineOr(
543541
VPInstruction_match<VPInstruction::PtrAdd, Op0_t, Op1_t>(Op0, Op1),
544542
VPInstruction_match<VPInstruction::WidePtrAdd, Op0_t, Op1_t>(Op0,

0 commit comments

Comments
 (0)