Commit 9656b8e
authored
OptimizeInstructions: Improve areConsecutiveInputsEqualAndFoldable (#8355)
To check if we can fold `A, B` into `A`, we can just check if `B` has
effects we can't remove. The old code used a utility that checks if
`A` is also removable, but that is suboptimal, and that entire
utility is not needed.1 parent b8a38f8 commit 9656b8e
File tree
2 files changed
+17
-37
lines changed- src/passes
- test/lit/passes
2 files changed
+17
-37
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2826 | 2826 | | |
2827 | 2827 | | |
2828 | 2828 | | |
2829 | | - | |
2830 | | - | |
2831 | | - | |
2832 | | - | |
2833 | | - | |
2834 | | - | |
2835 | | - | |
2836 | | - | |
2837 | | - | |
2838 | | - | |
2839 | | - | |
2840 | | - | |
2841 | | - | |
2842 | | - | |
2843 | | - | |
2844 | | - | |
2845 | | - | |
2846 | | - | |
2847 | | - | |
2848 | 2829 | | |
2849 | 2830 | | |
2850 | | - | |
2851 | | - | |
2852 | | - | |
2853 | | - | |
| 2831 | + | |
2854 | 2832 | | |
2855 | 2833 | | |
2856 | 2834 | | |
| |||
2862 | 2840 | | |
2863 | 2841 | | |
2864 | 2842 | | |
2865 | | - | |
2866 | | - | |
2867 | | - | |
| 2843 | + | |
| 2844 | + | |
| 2845 | + | |
| 2846 | + | |
| 2847 | + | |
| 2848 | + | |
| 2849 | + | |
2868 | 2850 | | |
2869 | 2851 | | |
2870 | 2852 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16141 | 16141 | | |
16142 | 16142 | | |
16143 | 16143 | | |
16144 | | - | |
16145 | | - | |
16146 | | - | |
16147 | | - | |
16148 | | - | |
16149 | | - | |
16150 | | - | |
16151 | | - | |
| 16144 | + | |
| 16145 | + | |
| 16146 | + | |
| 16147 | + | |
| 16148 | + | |
| 16149 | + | |
16152 | 16150 | | |
16153 | | - | |
16154 | | - | |
16155 | 16151 | | |
16156 | 16152 | | |
16157 | 16153 | | |
| |||
16179 | 16175 | | |
16180 | 16176 | | |
16181 | 16177 | | |
16182 | | - | |
| 16178 | + | |
| 16179 | + | |
| 16180 | + | |
16183 | 16181 | | |
16184 | 16182 | | |
16185 | 16183 | | |
| |||
0 commit comments