Commit 6e41180
committed
[LV] Fix missing precomptueCosts() in emitInvalidCostRemarks().
We should always update the SkipComputation set in VPCostContext before VPlan.cost().
This patch prevent assertion of in-loop reduction in the `VPReductionRecipe::computeCost()` and other
potentail assertions of partially implemented VPlan-based cost model.1 parent 3243e3d commit 6e41180
File tree
2 files changed
+3
-0
lines changed- llvm
- lib/Transforms/Vectorize
- test/Transforms/LoopVectorize
2 files changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4363 | 4363 | | |
4364 | 4364 | | |
4365 | 4365 | | |
| 4366 | + | |
4366 | 4367 | | |
4367 | 4368 | | |
4368 | 4369 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
0 commit comments