-
Notifications
You must be signed in to change notification settings - Fork 14.4k
[PassBuilder] Treat pipeline aliases as normal passes #146038
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
Conversation
Pipelines like `-passes="default<O3>"` are currently parsed in a special way. Switch them to work like normal, parameterized module passes.
llvm/lib/Passes/PassRegistry.def
Outdated
else | ||
return buildLTOPreLinkDefaultPipeline(L); |
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.
No else after return
llvm/lib/Passes/PassRegistry.def
Outdated
MODULE_PASS_WITH_PARAMS( | ||
"lto-pre-link", "", [&](OptimizationLevel L) { | ||
setupOptionsForPipelineAlias(PTO, L); | ||
if (PTO.UnifiedLTO) |
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.
Braces
; RUN: not opt -passes="default" < %s 2>&1 | FileCheck %s --check-prefix=MISSING-OPT-LEVEL | ||
; RUN: not opt -passes="default<foo>" < %s 2>&1 | FileCheck %s --check-prefix=INVALID-OPT-LEVEL |
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.
Check errors with the other names too?
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/10/builds/8212 Here is the relevant piece of the build log for the reference
|
Pipelines like `-passes="default<O3>"` are currently parsed in a special way. Switch them to work like normal, parameterized module passes.
Pipelines like `-passes="default<O3>"` are currently parsed in a special way. Switch them to work like normal, parameterized module passes.
Pipelines like
-passes="default<O3>"
are currently parsed in a special way. Switch them to work like normal, parameterized module passes.