Debugify in OriginalDebugInfo mode, introduced with D82545 , runs only with legacy PassManager.
This patch enables this utility for the NewPM.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Transforms/Utils/Debugify.cpp | ||
---|---|---|
964–970 | should this and the other addition below be separate passes? doesn't look like the two modes share a lot | |
llvm/test/DebugInfo/verify-di-preserve.ll | ||
16 | I'd rather not test the legacy PM, it's in the process of being removed, ditto for the other RUN lines | |
llvm/tools/opt/opt.cpp | ||
204 | we should move all these options into NewPMDriver.cpp and remove support for them in the legacy PM. |
Thank you for the comments, @aeubanks.
My replies are inline.
llvm/lib/Transforms/Utils/Debugify.cpp | ||
---|---|---|
964–970 | As I am aware, this was already discussed before the introduction of the "Original DebugInfo mode" (please, find the link to the discussion) and an agreement was to keep the single pass with two modes. | |
llvm/test/DebugInfo/verify-di-preserve.ll | ||
16 | I agree, now that I am seeing some test platforms don't support '-flegacy-pass-manager', it would be best to test only default (new) PM. | |
llvm/tools/opt/opt.cpp | ||
204 | If you agree, I would keep that as future work, to move those options for both SytheticDebugInfo and OriginalDebugInfo mode together. |
should this and the other addition below be separate passes? doesn't look like the two modes share a lot