Commit e94372d
[SimplifyCFG] avoid sinking insts within an infinite-loop
The test is reduced from a C source example in:
https://llvm.org/PR49541
It's possible that the test could be reduced further or
the predicate generalized further, but it seems to require
a few ingredients (including the "late" SimplifyCFG options
on the RUN line) to fall into the infinite-loop trap.
(cherry picked from commit bd197ed)1 parent f4c01f3 commit e94372d
File tree
2 files changed
+61
-7
lines changed- llvm
- lib/Transforms/Utils
- test/Transforms/SimplifyCFG
2 files changed
+61
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1628 | 1628 | | |
1629 | 1629 | | |
1630 | 1630 | | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
1631 | 1636 | | |
1632 | 1637 | | |
1633 | 1638 | | |
| |||
1714 | 1719 | | |
1715 | 1720 | | |
1716 | 1721 | | |
1717 | | - | |
| 1722 | + | |
1718 | 1723 | | |
1719 | 1724 | | |
1720 | 1725 | | |
1721 | 1726 | | |
1722 | 1727 | | |
1723 | | - | |
| 1728 | + | |
1724 | 1729 | | |
1725 | 1730 | | |
1726 | 1731 | | |
| |||
1733 | 1738 | | |
1734 | 1739 | | |
1735 | 1740 | | |
1736 | | - | |
1737 | | - | |
1738 | | - | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
1739 | 1744 | | |
1740 | 1745 | | |
1741 | 1746 | | |
| |||
1746 | 1751 | | |
1747 | 1752 | | |
1748 | 1753 | | |
1749 | | - | |
| 1754 | + | |
1750 | 1755 | | |
1751 | 1756 | | |
1752 | 1757 | | |
1753 | | - | |
| 1758 | + | |
1754 | 1759 | | |
1755 | 1760 | | |
1756 | 1761 | | |
| |||
| 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 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
0 commit comments