ISLE: simplify select/bitselect when both choices are the same#6141
ISLE: simplify select/bitselect when both choices are the same#6141jameysharp merged 1 commit intobytecodealliance:mainfrom
Conversation
|
I like this commit. (Note for other reviewers, this PR is based on #6140 so at the moment only ISLE: simplify select/bitself when both choices are the same is necessary to review here.) I'd like to double-check with @cfallin that these new rules are correct, but I think they are. I don't think there's any subtlety to I think this particular optimization might even be legal for There's a typo in the commit message and PR description ("bitself"→"bitselect") but once #6140 lands and this PR is rebased, I think this is a fine change. |
|
Yep, this looks right to me -- no hidden subtleties! I agree that the Spectre-guard variant would also be eligible (and would not lose any speculative safety), but I'm hesitant for us to do that, at least for now; IMHO a better approach for optimizations that touch |
Adds
select x x => xandbitselect x x => xrewrites