From: Jessica Paquette Date: Wed, 27 Mar 2019 18:35:04 +0000 (+0000) Subject: [opt-viewer] Teach optrecord.py about !Failure tags X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8647448aa79a3c3bf079f7f3dd4619607ef4a75f;p=llvm [opt-viewer] Teach optrecord.py about !Failure tags WarnMissedTransforms.cpp produces remarks that use !Failure tags. These weren't supported in optrecord.py, so if you encountered one in any of the tools, the tool would crash. Add them as a type of missed optimization. Differential Revision: https://reviews.llvm.org/D59895 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357110 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/opt-viewer/optrecord.py b/tools/opt-viewer/optrecord.py index 81d6da9ed6e..f6fd772689a 100644 --- a/tools/opt-viewer/optrecord.py +++ b/tools/opt-viewer/optrecord.py @@ -264,6 +264,8 @@ class Missed(Remark): def color(self): return "red" +class Failure(Missed): + yaml_tag = '!Failure' def get_remarks(input_file, filter_=None): max_hotness = 0