Skip to content

Commit 21b33e6

Browse files
committed
!fixup, Remove unused check and functions.
1 parent d584fc1 commit 21b33e6

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2677,13 +2677,6 @@ class VPMulAccumulateReductionRecipe : public VPReductionRecipe {
26772677

26782678
/// Return the non negative flag of the ext recipe.
26792679
bool isNonNeg() const { return IsNonNeg; }
2680-
2681-
/// Drop flags in this recipe.
2682-
void dropPoisonGeneratingFlags() {
2683-
VPRecipeWithIRFlags::dropPoisonGeneratingFlags();
2684-
// Also drop the extra flags not in VPRecipeWithIRFlags.
2685-
this->IsNonNeg = false;
2686-
}
26872680
};
26882681

26892682
/// VPReplicateRecipe replicates a given instruction producing multiple scalar

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,17 +1264,10 @@ void VPlanTransforms::clearReductionWrapFlags(VPlan &Plan) {
12641264
if (RK != RecurKind::Add && RK != RecurKind::Mul)
12651265
continue;
12661266

1267-
for (VPUser *U : collectUsersRecursively(PhiR)) {
1268-
// Flags in reduction recipes are control/store by the recurrence
1269-
// descriptor. Dropping flags for VPExtendedReductionRecipe and
1270-
// VPMulaccRecipe may drop flags that we don't expect to drop.
1271-
if (isa<VPReductionRecipe>(U))
1272-
continue;
1273-
1267+
for (VPUser *U : collectUsersRecursively(PhiR))
12741268
if (auto *RecWithFlags = dyn_cast<VPRecipeWithIRFlags>(U)) {
12751269
RecWithFlags->dropPoisonGeneratingFlags();
12761270
}
1277-
}
12781271
}
12791272
}
12801273

0 commit comments

Comments
 (0)