Skip to content

Fix OptimizeInstructions for general Cmpxchg expected types#8495

Merged
tlively merged 1 commit intomainfrom
optimize-insts-expected-eq
Mar 19, 2026
Merged

Fix OptimizeInstructions for general Cmpxchg expected types#8495
tlively merged 1 commit intomainfrom
optimize-insts-expected-eq

Conversation

@tlively
Copy link
Member

@tlively tlively commented Mar 19, 2026

OptimizeInstructions previously assumed incorrectly that the expected field of a StructCmpxchg would be a subtype of the accessed field type. In fact, it can be a supertype as long as it is a subtype of eq (or shared eq).

OptimizeInstructions previously assumed incorrectly that the expected field of a StructCmpxchg would be a subtype of the accessed field type. In fact, it can be a supertype as long as it is a subtype of eq (or shared eq).
@tlively tlively requested a review from kripken March 19, 2026 05:28
@tlively tlively merged commit 7c2fd23 into main Mar 19, 2026
16 checks passed
@tlively tlively deleted the optimize-insts-expected-eq branch March 19, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants