From 8647448aa79a3c3bf079f7f3dd4619607ef4a75f Mon Sep 17 00:00:00 2001 From: Jessica Paquette Date: Wed, 27 Mar 2019 18:35:04 +0000 Subject: [PATCH] [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 --- tools/opt-viewer/optrecord.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.50.1