File tree Expand file tree Collapse file tree 2 files changed +1
-15
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -2677,13 +2677,6 @@ class VPMulAccumulateReductionRecipe : public VPReductionRecipe {
2677
2677
2678
2678
// / Return the non negative flag of the ext recipe.
2679
2679
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
- }
2687
2680
};
2688
2681
2689
2682
// / VPReplicateRecipe replicates a given instruction producing multiple scalar
Original file line number Diff line number Diff line change @@ -1264,17 +1264,10 @@ void VPlanTransforms::clearReductionWrapFlags(VPlan &Plan) {
1264
1264
if (RK != RecurKind::Add && RK != RecurKind::Mul)
1265
1265
continue ;
1266
1266
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))
1274
1268
if (auto *RecWithFlags = dyn_cast<VPRecipeWithIRFlags>(U)) {
1275
1269
RecWithFlags->dropPoisonGeneratingFlags ();
1276
1270
}
1277
- }
1278
1271
}
1279
1272
}
1280
1273
You can’t perform that action at this time.
0 commit comments