[llvm-bugs] [Bug 46113] New: Invalid profile triggers ControlHeightReduction assertion failure

via llvm-bugs llvm-bugs at lists.llvm.org
Wed May 27 22:30:28 PDT 2020


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

            Bug ID: 46113
           Summary: Invalid profile triggers ControlHeightReduction
                    assertion failure
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: yikong at google.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

$ echo gibberish > a.txt
$ clang -fprofile-sample-use=a.txt -O3 test.cpp
error: a.txt: Could not open profile: Unrecognized sample profile encoding
format
Assertion failed: (PSI.hasProfileSummary() && "Empty PSI?"), function
shouldApply, file
llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp, line 449.

It would be nicer if this can be handled more gracefully.

-- 
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/20200528/682c960d/attachment.html>


More information about the llvm-bugs mailing list