Repository navigation
fix(codegen): preserve MULX memory source aliases #1444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Thimo188
wants to merge
13
commits into
main
Choose a base branch
from
upstream-pr/27274
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+205
−37
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
fc68c63
fix(codegen): restrict native MULX fallback to Rosetta
malekaifa 5dccb0f
Merge current main into MULX lowering PR
malekaifa ca39903
fix(codegen): keep optional MULX in short sequences
malekaifa e9c6c45
test(codegen): verify MULX FS/GS preload semantics
malekaifa 195a0be
Merge current upstream main into PR #27274
malekaifa efaea8c
docs(relinker): correct MULX debt source link
malekaifa c0c75f3
test(codegen): cover reserved MULX sequence fallback
malekaifa a0cce49
docs(relinker): fix MULX source link path
malekaifa febdf11
docs(relinker): correct MULX debt source link
malekaifa 6ec8c2e
Merge remote-tracking branch 'refs/remotes/upstream/prime-d-main-live…
malekaifa efa5aad
Merge remote-tracking branch 'refs/remotes/upstream/prime-d-main-live…
malekaifa dadbf31
Merge latest upstream main into PR #27274
malekaifa b3d62dd
Merge latest upstream main into PR #27274
malekaifa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional kept MULX blocks the wide-store window and aborts conversion.
Under the Rosetta target, the 4-byte wide store
C5 FC 11 00uses the relocatable window path. Its following neighbour, the 5-byte MULXC4 E2 EB F6 11, is an optional kept instruction._convertSegmentadds every kept match toclaimed(Amd64OnlyConverter.cpp:416-420).WindowPlacer::_movablerejects claimed indices (line 161), soWindowcannot use the forward neighbour (line 65).Islandcannot start at a pending or claimed index (line 205). When no earlier instruction or nearby island is movable, line 455 throws, and the whole segment conversion fails.The admission check at line 474 does not apply here. It runs only in the short-extension loop, which the window branch bypasses.
The required behavior is this. A relocatable window must be able to include an unconsumed optional kept neighbour, copied as original bytes. The placement must record that neighbour as consumed, so that no later placement moves it again. Already consumed kept neighbours must stay unavailable. The backward and island checks also use
_movable, so they need the same ownership rule. Pending, non-kept neighbours keep the current lowering path.Scope of the failure
The throw occurs when no other movable neighbour or island exists within reach. A segment with a later movable instruction within reach can still convert.