-
Notifications
You must be signed in to change notification settings - Fork 16.1k
[VPlan] Split out optimizeEVLMasks. NFC #174925
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
Changes from all commits
68eb4fc
abbb939
e5dbe66
5a2b815
acf669c
3a6438e
e550c42
d307310
3d5108c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -266,6 +266,15 @@ struct VPlanTransforms { | |
| addExplicitVectorLength(VPlan &Plan, | ||
|
Contributor
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. migh be a good opporunity to clarfiy the documentation here, perhaps worth mentioning that this replaces the header mask.
it may also have to introduce a new phi to track the EVL of the previous iteration
Contributor
Author
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. Clarified the documentation in e550c42 |
||
| const std::optional<unsigned> &MaxEVLSafeElements); | ||
|
|
||
| /// Optimize recipes which use an EVL-based header mask to VP intrinsics, for | ||
| /// example: | ||
| /// | ||
| /// %mask = icmp ult step-vector, EVL | ||
| /// %load = load %ptr, %mask | ||
| /// --> | ||
| /// %load = vp.load %ptr, EVL | ||
| static void optimizeEVLMasks(VPlan &Plan); | ||
|
|
||
| // For each Interleave Group in \p InterleaveGroups replace the Recipes | ||
| // widening its memory instructions with a single VPInterleaveRecipe at its | ||
| // insertion point. | ||
|
|
||
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.
Can the code use m_SpecificICmp to look for icmp ult?
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.
Done in e5dbe66, but I had to add a specific VPRecipeBase overload for SpecificCmp_match so we can directly call match on VPRecipeBase. Regular Cmp_match does the same thing
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.
Grea,t hat useful in any cae