Commit 9241f0a
committed
[VPlan] Remove createReduction. NFCI
This is split off from llvm#131300.
A VPReductionRecipe will never have a AnyOf or FindLastIV recurrence, so when it calls createReduction it always calls createSimpleReduction.
If we replace the call then it leaves createReduction with one user in VPInstruction::ComputeReductionResult, which we can inline and then remove.1 parent fc8b2bf commit 9241f0a
File tree
3 files changed
+16
-26
lines changed- llvm
- include/llvm/Transforms/Utils
- lib/Transforms
- Utils
- Vectorize
3 files changed
+16
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | 430 | | |
436 | 431 | | |
437 | 432 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1345 | 1345 | | |
1346 | 1346 | | |
1347 | 1347 | | |
1348 | | - | |
1349 | | - | |
1350 | | - | |
1351 | | - | |
1352 | | - | |
1353 | | - | |
1354 | | - | |
1355 | | - | |
1356 | | - | |
1357 | | - | |
1358 | | - | |
1359 | | - | |
1360 | | - | |
1361 | | - | |
1362 | | - | |
1363 | | - | |
1364 | | - | |
1365 | | - | |
1366 | 1348 | | |
1367 | 1349 | | |
1368 | 1350 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
666 | 666 | | |
667 | 667 | | |
668 | 668 | | |
669 | | - | |
670 | | - | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
671 | 684 | | |
672 | 685 | | |
673 | 686 | | |
| |||
2297 | 2310 | | |
2298 | 2311 | | |
2299 | 2312 | | |
2300 | | - | |
| 2313 | + | |
2301 | 2314 | | |
2302 | 2315 | | |
2303 | 2316 | | |
| |||
0 commit comments