[PATCH] D86167: [opt][NewPM] Add basic-aa in legacy PM compatibility mode
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 19 17:00:12 PDT 2020
aeubanks added inline comments.
================
Comment at: llvm/tools/opt/NewPMDriver.cpp:351
+ // For compatibility with legacy pass manager.
+ // basic-aa was always available in the legacy pass manager,
+ // unless -disable-basic-aa was specified.
----------------
ychen wrote:
> I think it is helpful to be specific here, saying something like "AAResultsWrapperPass` by default provide basic-aa in legacy PM."
>
> Could we combine this code with the `if (!AAPipeline.empty())` code above? If the AAPipeline is empty, we could make it "basic-aa".
Added comment.
I don't want to change the semantics of any tests using `opt -passes=foo`, this is purely for compatibility with tests using `opt -foo-pass`.
And actually I think having to explicitly specify basic-aa makes more sense than implicitly adding it, so I like the NPM way of doing it. But that's a different discussion.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86167/new/
https://reviews.llvm.org/D86167
More information about the llvm-commits
mailing list