https://bugs.llvm.org/show_bug.cgi?id=47370

            Bug ID: 47370
           Summary: --print-before/after don't work with new pass manager
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
            Blocks: 46651

--print-before/after take a list of passes. For example,
--print-before=globalopt. `llvm::shouldPrintBeforePass()` checks that the pass
name matches e.g. "globalopt". This works under the legacy PM. But in the new
PM, the pass instrumentation responsible for printing IR is given not the pass
name like "globalopt" but rather "GlobalOptPass", so it never matches. So
--print-before/after end up silently never working under the new PM.


Referenced Bugs:

https://bugs.llvm.org/show_bug.cgi?id=46651
[Bug 46651] Fix all opt tests to work under NPM
-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to