The legacy pass's default constructor sets UseCommandLine = true and
goes down a separate testing route. Match that in the NPM pass.
This fixes all tests in llvm/test/Transforms/WholeProgramDevirt under NPM.
Paths
| Differential D88588
[WholeProgramDevirt][NewPM] Add NPM testing path to match legacy pass ClosedPublic Authored by aeubanks on Sep 30 2020, 9:30 AM.
Details Summary The legacy pass's default constructor sets UseCommandLine = true and This fixes all tests in llvm/test/Transforms/WholeProgramDevirt under NPM.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Sep 30 2020, 10:42 AM Closed by commit rG460dda071e09: [WholeProgramDevirt][NewPM] Add NPM testing path to match legacy pass (authored by aeubanks). · Explain WhySep 30 2020, 5:28 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 295325 llvm/include/llvm/Transforms/IPO/WholeProgramDevirt.h
llvm/lib/Passes/PassRegistry.def
llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
llvm/test/Transforms/WholeProgramDevirt/import.ll
|