Skip to content

Update i64_from_iconst to only match iconst - #8739

Merged
alexcrichton merged 1 commit into
bytecodealliance:mainfrom
alexcrichton:iconst-only-match-iconst
Jun 4, 2024
Merged

alexcrichton merged 1 commit into
bytecodealliance:mainfrom
alexcrichton:iconst-only-match-iconst

Conversation

@alexcrichton

Copy link
Copy Markdown
Member

Previously this extractor would additionally match f32const and f64const which while theoretically not the end of the world can be confusing. Nowadays switch it to instead only matching the iconst instruction, as the name implies, and if necessary matching float constants is probably best done through separate ISLE lowering rules.

Closes #8723

Previously this extractor would additionally match `f32const` and
`f64const` which while theoretically not the end of the world can be
confusing. Nowadays switch it to instead only matching the `iconst`
instruction, as the name implies, and if necessary matching float
constants is probably best done through separate ISLE lowering rules.

Closes bytecodealliance#8723
@alexcrichton
alexcrichton requested a review from a team as a code owner June 3, 2024 20:09
@alexcrichton
alexcrichton requested review from elliottt and removed request for a team June 3, 2024 20:09
@github-actions github-actions Bot added cranelift Issues related to the Cranelift code generator cranelift:area:machinst Issues related to instruction selection and the new MachInst backend. labels Jun 3, 2024

@elliottt elliottt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Seems reasonable to me!

@alexcrichton
alexcrichton added this pull request to the merge queue Jun 4, 2024
Merged via the queue into bytecodealliance:main with commit 9f69578 Jun 4, 2024
@alexcrichton
alexcrichton deleted the iconst-only-match-iconst branch June 4, 2024 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cranelift:area:machinst Issues related to instruction selection and the new MachInst backend. cranelift Issues related to the Cranelift code generator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ISLE i64_from_iconst extractor can match f32const/f64const

2 participants