Skip to content

cranelift/egraphs: more select/bitselect optimizations#6214

Open
jameysharp wants to merge 1 commit intobytecodealliance:mainfrom
jameysharp:select-opts
Open

cranelift/egraphs: more select/bitselect optimizations#6214
jameysharp wants to merge 1 commit intobytecodealliance:mainfrom
jameysharp:select-opts

Conversation

@jameysharp
Copy link
Copy Markdown
Contributor

I've been thinking about the algebraic relationships between bmask and other instructions due to recent PRs, and wrote down a few of them here.

These patterns don't seem to appear in any of the Sightglass bz2, pulldown-cmark, and spidermonkey benchmarks, as this PR has no effect on execution-time instructions retired for those benchmarks.

I've been thinking about the algebraic relationships between `bmask` and
other instructions due to recent PRs, and wrote down a few of them here.

These patterns don't seem to appear in any of the Sightglass `bz2`,
`pulldown-cmark`, and `spidermonkey` benchmarks, as this PR has no
effect on execution-time instructions retired for those benchmarks.
@jameysharp jameysharp requested a review from a team as a code owner April 14, 2023 21:40
@jameysharp jameysharp requested review from abrown and removed request for a team April 14, 2023 21:40
@github-actions github-actions Bot added the cranelift Issues related to the Cranelift code generator label Apr 14, 2023
Copy link
Copy Markdown
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we want to be really careful about including select_spectre_guard optimizations in here. Might want to pull them out to their own file where we can argue why they are speculation safe.

Also these new optimization cases need tests.

@github-actions github-actions Bot added the isle Related to the ISLE domain-specific language label May 10, 2023
@github-actions
Copy link
Copy Markdown

Subscribe to Label Action

cc @cfallin, @fitzgen

Details This issue or pull request has been labeled: "cranelift", "isle"

Thus the following users have been cc'd because of the following labels:

  • cfallin: isle
  • fitzgen: isle

To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file.

Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cranelift Issues related to the Cranelift code generator isle Related to the ISLE domain-specific language

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants