Files
Jamey Sharp f59b324602 cranelift: Optimize select_spectre_guard, carefully (#8139)
* cranelift: Optimize select_spectre_guard, carefully

This commit makes two changes to our treatment of
`select_spectre_guard`.

First, stop annotating this instruction as having any side effects. We
only care that if its value result is used, then it's computed without
branching on the condition input. We don't otherwise care when the value
is computed, or if it's computed at all.

Second, introduce some carefully selected ISLE egraph rewrites for this
instruction. These particular rewrites are those where we can statically
determine which SSA value will be the result of the instruction. Since
there is no actual choice involved, there's no way to accidentally
introduce speculation on the condition input.

* Add filetests
2024-03-20 22:31:45 +00:00
..
2024-03-05 00:22:42 +00:00

This crate contains the metaprogram used by cranelift-codegen. It's not useful on its own.