Commit 639ec9c
committed
[LV] Strip unmaintainable MinBWs assert
tryToWiden attempts to replace an Instruction with a Constant from SCEV,
but forgets to erase the Instruction from the MinBWs map, leading to an
assert in VPlanTransforms::truncateToMinimalBitwidths. Going forward,
the assertion in truncateToMinimalBitwidths is unmaintainable, as LV
could simplify the expression at any point: fix the bug by stripping the
unmaintable assertion.
Fixes #125278.1 parent b4e2d02 commit 639ec9c
File tree
2 files changed
+39
-19
lines changed- llvm
- lib/Transforms/Vectorize
- test/Transforms/LoopVectorize
2 files changed
+39
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1598 | 1598 | | |
1599 | 1599 | | |
1600 | 1600 | | |
1601 | | - | |
1602 | | - | |
1603 | | - | |
1604 | | - | |
1605 | | - | |
1606 | 1601 | | |
1607 | 1602 | | |
1608 | 1603 | | |
| |||
1624 | 1619 | | |
1625 | 1620 | | |
1626 | 1621 | | |
1627 | | - | |
1628 | | - | |
1629 | | - | |
1630 | 1622 | | |
1631 | 1623 | | |
1632 | 1624 | | |
| |||
1650 | 1642 | | |
1651 | 1643 | | |
1652 | 1644 | | |
1653 | | - | |
1654 | 1645 | | |
1655 | 1646 | | |
1656 | 1647 | | |
| |||
1714 | 1705 | | |
1715 | 1706 | | |
1716 | 1707 | | |
1717 | | - | |
1718 | | - | |
1719 | | - | |
1720 | | - | |
1721 | | - | |
1722 | 1708 | | |
1723 | 1709 | | |
1724 | 1710 | | |
1725 | 1711 | | |
1726 | 1712 | | |
1727 | | - | |
1728 | | - | |
1729 | | - | |
1730 | 1713 | | |
1731 | 1714 | | |
1732 | 1715 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
5 | 42 | | |
6 | 43 | | |
7 | 44 | | |
| |||
0 commit comments