-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
ARM64-SVE: GatherPrefetch #103826
Merged
Merged
ARM64-SVE: GatherPrefetch #103826
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
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 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 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 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 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1476,6 +1476,20 @@ int LinearScan::BuildHWIntrinsic(GenTreeHWIntrinsic* intrinsicTree, int* pDstCou | |
needBranchTargetReg = !intrin.op1->isContainedIntOrIImmed(); | ||
break; | ||
|
||
case NI_Sve_GatherPrefetch8Bit: | ||
case NI_Sve_GatherPrefetch16Bit: | ||
case NI_Sve_GatherPrefetch32Bit: | ||
case NI_Sve_GatherPrefetch64Bit: | ||
if (!varTypeIsSIMD(intrin.op2->gtType)) | ||
{ | ||
needBranchTargetReg = !intrin.op4->isContainedIntOrIImmed(); | ||
} | ||
else | ||
{ | ||
needBranchTargetReg = !intrin.op3->isContainedIntOrIImmed(); | ||
} | ||
break; | ||
|
||
case NI_Sve_SaturatingDecrementBy16BitElementCount: | ||
case NI_Sve_SaturatingDecrementBy32BitElementCount: | ||
case NI_Sve_SaturatingDecrementBy64BitElementCount: | ||
|
@@ -1993,6 +2007,29 @@ int LinearScan::BuildHWIntrinsic(GenTreeHWIntrinsic* intrinsicTree, int* pDstCou | |
srcCount += BuildAddrUses(intrin.op2); | ||
break; | ||
|
||
case NI_Sve_GatherPrefetch8Bit: | ||
case NI_Sve_GatherPrefetch16Bit: | ||
case NI_Sve_GatherPrefetch32Bit: | ||
case NI_Sve_GatherPrefetch64Bit: | ||
case NI_Sve_GatherVector: | ||
case NI_Sve_GatherVectorByteZeroExtend: | ||
case NI_Sve_GatherVectorInt16SignExtend: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. seems we missed adding this previously when we added other |
||
case NI_Sve_GatherVectorInt16WithByteOffsetsSignExtend: | ||
case NI_Sve_GatherVectorInt32SignExtend: | ||
case NI_Sve_GatherVectorInt32WithByteOffsetsSignExtend: | ||
case NI_Sve_GatherVectorSByteSignExtend: | ||
case NI_Sve_GatherVectorUInt16WithByteOffsetsZeroExtend: | ||
case NI_Sve_GatherVectorUInt16ZeroExtend: | ||
case NI_Sve_GatherVectorUInt32WithByteOffsetsZeroExtend: | ||
case NI_Sve_GatherVectorUInt32ZeroExtend: | ||
assert(intrinsicTree->OperIsMemoryLoadOrStore()); | ||
if (!varTypeIsSIMD(intrin.op2->gtType)) | ||
{ | ||
srcCount += BuildAddrUses(intrin.op2); | ||
break; | ||
} | ||
FALLTHROUGH; | ||
|
||
default: | ||
{ | ||
SingleTypeRegSet candidates = lowVectorOperandNum == 2 ? lowVectorCandidates : RBM_NONE; | ||
|
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.
Removed this block as HWIntrinsicImmOpHelper does all those checks for you.