[PATCH] D59895: [opt-viewer] Teach optrecord.py about !Failure tags

Jessica Paquette via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 27 11:28:25 PDT 2019


paquette created this revision.
paquette added reviewers: anemet, thegameg, fhahn.
Herald added a project: LLVM.

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.


https://reviews.llvm.org/D59895

Files:
  llvm/tools/opt-viewer/optrecord.py


Index: llvm/tools/opt-viewer/optrecord.py
===================================================================
--- llvm/tools/opt-viewer/optrecord.py
+++ llvm/tools/opt-viewer/optrecord.py
@@ -264,6 +264,8 @@
     def color(self):
         return "red"
 
+class Failure(Missed):
+    yaml_tag = '!Failure'
 
 def get_remarks(input_file, filter_=None):
     max_hotness = 0


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59895.192487.patch
Type: text/x-patch
Size: 372 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190327/e78ec487/attachment.bin>


More information about the llvm-commits mailing list