Commit 5f04e06
committed
Tweak regalloc double-split handling
The double-split logic assumed that the range obtained by splitting at
the first split point would always be splittable at the second, but this
is incorrect for ranges with holes around the second split point.
Make sure double split handling always checks whether the range is
splittable at the second split point before going through with it, and
simplify some code in the double-split computation now that that is the
case.1 parent 5bd22b7 commit 5f04e06
File tree
2 files changed
+9637
-5
lines changed- crates
- codegen/src/regalloc
- filetests/cases/isel-regalloc/tdn
2 files changed
+9637
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
183 | | - | |
184 | | - | |
| 182 | + | |
185 | 183 | | |
186 | 184 | | |
187 | 185 | | |
| |||
211 | 209 | | |
212 | 210 | | |
213 | 211 | | |
214 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
215 | 221 | | |
216 | 222 | | |
217 | 223 | | |
218 | | - | |
219 | 224 | | |
220 | 225 | | |
221 | 226 | | |
| |||
0 commit comments