-
Notifications
You must be signed in to change notification settings - Fork 15.1k
[LV] Fix cost misaligned when gather/scatter w/ addr is uniform. #157387
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 3 commits
8d7aea3
70936c0
3b3cc6e
b57e641
1fcac6d
f62c348
7b7b486
f1a6c9b
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -6905,6 +6905,17 @@ static bool planContainsAdditionalSimplifications(VPlan &Plan, | |||||
| if (isa<VPPartialReductionRecipe>(&R)) | ||||||
| return true; | ||||||
|
|
||||||
| // The VPlan-based cost model can analysis if recipes is scalar | ||||||
| // recursively, but legacy cost model cannot. | ||||||
|
||||||
| // recursively, but legacy cost model cannot. | |
| // recursively, but the legacy cost model cannot. |
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.
Still pending.
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.
Ooops, missed that. Fixed, thanks!
Outdated
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 this use isLegacyUniformAfterVectorization, as the code does below?
| CostCtx.CM.Legal->isUniform( | |
| CostCtx.isLegacyUniformAfterVectorization( |
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.
Updated, thanks!
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.
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.
Fixed, thanks!