Commit e7b19aa
committed
[IVDesc] Check loop-preheader for loop-legality when pass-remarks enabled
When `-pass-remarks=loop-vectorize` is specified, the subsequent
logic is executed to display detailed debug messages even
if no PreHeader exists in the loop.
Therefore, an assert occurs when the `getLoopPreHeader()` function
is called. This commit resolves that issue.
Fixed: #1653771 parent 4b6c608 commit e7b19aa
File tree
2 files changed
+36
-1
lines changed- llvm
- lib/Analysis
- test/Transforms/LoopVectorize
2 files changed
+36
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
226 | 228 | | |
227 | 229 | | |
228 | 230 | | |
| |||
587 | 589 | | |
588 | 590 | | |
589 | 591 | | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
590 | 595 | | |
591 | 596 | | |
592 | 597 | | |
| |||
1536 | 1541 | | |
1537 | 1542 | | |
1538 | 1543 | | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
1539 | 1549 | | |
1540 | 1550 | | |
1541 | 1551 | | |
| |||
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments