Commit 36e1406
committed
[VPlan] Remove dead AnyOf reduction case in VPReductionRecipe. NFCI
From what I understand, we only create VPReductionRecipes for in-loop reductions, and we don't currently support in-loop AnyOf reductions.
We only create VPReductionRecipes in the !PhiR->isInLoop() section of adjustRecipesForReductions, and this comment from the initial patch seems to confirm this https://reviews.llvm.org/D108136#anchor-inline-1038338, so I think we can remove this check in the condition logic.
I checked compiling SPEC 2017 with -prefer-inloop-predicates and the added assertion doesn't trigger.1 parent 4f46b75 commit 36e1406
1 file changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2222 | 2222 | | |
2223 | 2223 | | |
2224 | 2224 | | |
| 2225 | + | |
| 2226 | + | |
2225 | 2227 | | |
2226 | 2228 | | |
2227 | 2229 | | |
| |||
2232 | 2234 | | |
2233 | 2235 | | |
2234 | 2236 | | |
2235 | | - | |
2236 | | - | |
2237 | | - | |
2238 | | - | |
2239 | | - | |
2240 | | - | |
| 2237 | + | |
| 2238 | + | |
2241 | 2239 | | |
2242 | 2240 | | |
2243 | 2241 | | |
| |||
0 commit comments