[llvm-bugs] [Bug 32352] New: Provide a way for OptimizationRemarkEmitter::allowExtraAnalysis to check if (specific) remarks are enabled

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Mar 20 09:06:59 PDT 2017


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

            Bug ID: 32352
           Summary: Provide a way for
                    OptimizationRemarkEmitter::allowExtraAnalysis to check
                    if (specific) remarks are enabled
           Product: tools
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: opt-viewer
          Assignee: unassignedbugs at nondot.org
          Reporter: anemet at apple.com
                CC: anemet at apple.com, llvm-bugs at lists.llvm.org

There is already a need for this.  For example WholeProgramDevirt instantiates
a remark just to check its Enabled field to see if remarks are on or not.  This
actually does not work because clang does not use the Enabled field only (opt's
-pass-remarks* do).

Also GlobalISel wants to do something like this and it's currently using a
cl::opt as a work-around.

-- 
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/20170320/3c53af3a/attachment.html>


More information about the llvm-bugs mailing list