1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

[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

llvm-svn: 357110
This commit is contained in:
Jessica Paquette 2019-03-27 18:35:04 +00:00
parent 303b4763c6
commit acdfa210f2

View File

@ -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