Commit b0536b5
[LV] Do not try to sink dead instructions.
Dead instructions do not need to be sunk. Currently we try and record
the recipies for them, but there are no recipes emitted for them and
there's nothing to sink. They can be removed from SinkAfter while
marking them for recording.
Fixes PR44634.
Reviewers: rengolin, hsaito, fhahn, Ayal, gilr
Reviewed By: gilr
Differential Revision: https://reviews.llvm.org/D73423
(cherry picked from commit a911fef)1 parent d275de3 commit b0536b5
File tree
3 files changed
+51
-8
lines changed- llvm
- lib/Transforms/Vectorize
- test/Transforms/LoopVectorize
3 files changed
+51
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
283 | | - | |
284 | | - | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
285 | 286 | | |
286 | 287 | | |
287 | 288 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7118 | 7118 | | |
7119 | 7119 | | |
7120 | 7120 | | |
| 7121 | + | |
| 7122 | + | |
| 7123 | + | |
| 7124 | + | |
| 7125 | + | |
7121 | 7126 | | |
7122 | 7127 | | |
7123 | | - | |
7124 | | - | |
| 7128 | + | |
| 7129 | + | |
7125 | 7130 | | |
7126 | 7131 | | |
7127 | 7132 | | |
7128 | 7133 | | |
7129 | 7134 | | |
7130 | 7135 | | |
7131 | | - | |
| 7136 | + | |
| 7137 | + | |
7132 | 7138 | | |
7133 | 7139 | | |
7134 | 7140 | | |
7135 | 7141 | | |
7136 | 7142 | | |
7137 | 7143 | | |
7138 | | - | |
7139 | | - | |
7140 | 7144 | | |
7141 | 7145 | | |
7142 | 7146 | | |
| |||
Lines changed: 38 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
607 | 607 | | |
608 | 608 | | |
609 | 609 | | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
0 commit comments