| 5818cecf | 10-Jun-2025 |
Alex Crichton <[email protected]> |
aarch64: Remove closure from `Inst::load_constant` (#11000)
This was added in #5366 but upon reflection I don't think that it's necessary as almost all of the definitions reuse the temporary registe
aarch64: Remove closure from `Inst::load_constant` (#11000)
This was added in #5366 but upon reflection I don't think that it's necessary as almost all of the definitions reuse the temporary register as the destination register as well. The original motivation looks like it's relate to the SSA-ness of instructions but I believe the way it's generated it's all SSA-valid, so this commit removes the temp allocation function and uses `rd`, the destination register, unconditionally instead.
show more ...
|
| f3c320d8 | 10-Jun-2025 |
Alex Crichton <[email protected]> |
winch: Generalize `with_scratch` function (#10997)
* Support any return value, not just `Result<()>` * Use `FnOnce` instead of `FnMut`
This meant that many `Ok(())` values could be dropped, but oth
winch: Generalize `with_scratch` function (#10997)
* Support any return value, not just `Result<()>` * Use `FnOnce` instead of `FnMut`
This meant that many `Ok(())` values could be dropped, but other values using `?` needed to explicitly annotate the return type which is done by returning `anyhow::Ok(())` to force the error type.
show more ...
|