-
Notifications
You must be signed in to change notification settings - Fork 15.4k
[AArch64] Generalize integer FPR lane stores for all types #134117
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
24cbbb3
[AArch64] Make use of byte FPR stores bytes extracted from vectors
MacDue bc61bd5
WIP: Attempt vector truncstore
MacDue 7842bc4
Prefer st1.b in some cases
MacDue f6466ce
Avoid NOP movs
MacDue 7abb342
Add note
MacDue 36d54fe
Fixups
MacDue 6857792
Generalize fold
MacDue 9ce811e
Fixups
MacDue 87e277f
Prefer scalar mov form
MacDue 2f39546
Remove SVE FIXME
MacDue 33346f8
Restore zero store behaviour
MacDue ab5439a
Move check
MacDue 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
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.
I'd say we're missing an obvious combine and looking at
DAGCombiner::visitBITCASTI seeIt's not worth looking for trouble so I'll take the current fix and we can circle back later if necessary. That said,
DAG.getConstantis specific to integers so the code needs moving after the!ValueVT.isInteger()bailout.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.
👍 I added this fold:
to
visitEXTRACT_VECTOR_ELT, which also seemed to resolve this (and a few more cases). But I can maybe post that in a later patch (since it results in changes across a few targets).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.
Yep, definitely future work. It's worth looking at
visitBITCASTfirst though because I think it only affects floating point build_vectors that are bit casted to integer. When the "redundant" bit casting is removed I believe existing combines will then take over.