[llvm-bugs] [Bug 47370] New: --print-before/after don't work with new pass manager

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 31 11:31:25 PDT 2020


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: unassignedbugs at nondot.org
          Reporter: aeubanks at google.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org
            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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200831/861fb130/attachment-0001.html>


More information about the llvm-bugs mailing list