-
Notifications
You must be signed in to change notification settings - Fork 15.4k
[AArch64] Don't run loop-idiom-vectorize pass in the O0 pipeline #156802
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 2 commits
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 |
|---|---|---|
|
|
@@ -107,6 +107,7 @@ add_llvm_target(AArch64CodeGen | |
| Core | ||
| GlobalISel | ||
| MC | ||
| Passes | ||
|
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. Why is this adding a new dependency?
Member
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.
The class
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. I agree it does seem a shame to add the extra dependency. Does #157057 help?
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. BTW, it looks like #157057 may not go anywhere, so don't let me hold up this PR. |
||
| Scalar | ||
| SelectionDAG | ||
| Support | ||
|
|
||
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.
Looks like these are invoked from
buildO0DefaultPipelinewhich is strange, but then we also callinvokeCGSCCOptimizerLateEPCallbacks,invokeLoopOptimizerEndEPCallbacksandinvokeScalarOptimizerLateEPCallbacksfrom there too.Perhaps better to guard the entire register function with the check, i.e.
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.
The
Levelvariable is an argument to the lambda it doesn't exist outside.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.
OK, that's true, but I just thought it must be easy enough to find out what the optimisation level is and just not bothering calling registerLateLoopOptimizationsEPCallback at all. I guess it's fine at the moment because we're only registering one pass.