Commit 4c6b540
committed
Disable a silcombine pattern that creates unoptimizable copies
The SILCombine of ref_to_raw_pointer uses ossa rauw which creates a copy.
The copy created cannot be removed because it has an escaping ownership.
Disabling the silcombine for ossa here to avoid generating unoptimizable copies.1 parent b9f7acb commit 4c6b540
File tree
2 files changed
+9
-42
lines changed- lib/SILOptimizer/SILCombiner
- test/SILOptimizer
2 files changed
+9
-42
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
800 | 800 | | |
801 | 801 | | |
802 | 802 | | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
803 | 806 | | |
804 | 807 | | |
805 | 808 | | |
806 | 809 | | |
807 | | - | |
808 | | - | |
809 | | - | |
810 | | - | |
811 | | - | |
812 | | - | |
813 | | - | |
814 | | - | |
815 | | - | |
816 | | - | |
817 | | - | |
818 | | - | |
819 | | - | |
820 | | - | |
821 | | - | |
822 | | - | |
823 | | - | |
824 | | - | |
825 | | - | |
826 | | - | |
827 | | - | |
828 | | - | |
829 | | - | |
830 | | - | |
831 | | - | |
832 | | - | |
833 | | - | |
834 | 810 | | |
835 | 811 | | |
836 | 812 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1572 | 1572 | | |
1573 | 1573 | | |
1574 | 1574 | | |
1575 | | - | |
1576 | | - | |
1577 | | - | |
1578 | | - | |
1579 | | - | |
| 1575 | + | |
| 1576 | + | |
1580 | 1577 | | |
1581 | 1578 | | |
1582 | 1579 | | |
| |||
1589 | 1586 | | |
1590 | 1587 | | |
1591 | 1588 | | |
1592 | | - | |
1593 | | - | |
1594 | | - | |
1595 | | - | |
1596 | | - | |
| 1589 | + | |
| 1590 | + | |
1597 | 1591 | | |
1598 | 1592 | | |
1599 | 1593 | | |
| |||
1605 | 1599 | | |
1606 | 1600 | | |
1607 | 1601 | | |
1608 | | - | |
1609 | | - | |
1610 | | - | |
1611 | | - | |
1612 | | - | |
| 1602 | + | |
| 1603 | + | |
1613 | 1604 | | |
1614 | 1605 | | |
1615 | 1606 | | |
| |||
0 commit comments