Commit 925854e
[mlir][IR] Set insertion point when erasing an operation (llvm#146955)
Erasing the operation to which the current insertion point is set,
leaves the insertion point in an invalid state. This commit resets the
insertion point to the following operation.
Also adjust the insertion point when inlining a block.1 parent ddf8658 commit 925854e
File tree
3 files changed
+47
-0
lines changed- mlir
- include/mlir/IR
- lib
- IR
- Transforms/Utils
3 files changed
+47
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
528 | 533 | | |
529 | 534 | | |
530 | 535 | | |
| |||
539 | 544 | | |
540 | 545 | | |
541 | 546 | | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
542 | 550 | | |
543 | 551 | | |
544 | 552 | | |
| |||
549 | 557 | | |
550 | 558 | | |
551 | 559 | | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
552 | 563 | | |
553 | 564 | | |
554 | 565 | | |
| |||
558 | 569 | | |
559 | 570 | | |
560 | 571 | | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
561 | 575 | | |
562 | 576 | | |
563 | 577 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
159 | 164 | | |
160 | 165 | | |
161 | 166 | | |
| |||
320 | 325 | | |
321 | 326 | | |
322 | 327 | | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
323 | 333 | | |
324 | 334 | | |
325 | 335 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1759 | 1759 | | |
1760 | 1760 | | |
1761 | 1761 | | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
1762 | 1768 | | |
1763 | 1769 | | |
1764 | 1770 | | |
| |||
1774 | 1780 | | |
1775 | 1781 | | |
1776 | 1782 | | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
1777 | 1789 | | |
1778 | 1790 | | |
1779 | 1791 | | |
| |||
1782 | 1794 | | |
1783 | 1795 | | |
1784 | 1796 | | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
1785 | 1803 | | |
1786 | 1804 | | |
1787 | 1805 | | |
| |||
1888 | 1906 | | |
1889 | 1907 | | |
1890 | 1908 | | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
1891 | 1914 | | |
1892 | 1915 | | |
1893 | 1916 | | |
| |||
0 commit comments