[llvm] r293262 - [opt-viewer] Include the function in the remark key

Adam Nemet via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 26 22:39:01 PST 2017


Author: anemet
Date: Fri Jan 27 00:39:01 2017
New Revision: 293262

URL: http://llvm.org/viewvc/llvm-project?rev=293262&view=rev
Log:
[opt-viewer] Include the function in the remark key

Avoid uniquing remarks with different the inlining context (Function).

Modified:
    llvm/trunk/utils/opt-viewer/opt-viewer.py

Modified: llvm/trunk/utils/opt-viewer/opt-viewer.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/opt-viewer/opt-viewer.py?rev=293262&r1=293261&r2=293262&view=diff
==============================================================================
--- llvm/trunk/utils/opt-viewer/opt-viewer.py (original)
+++ llvm/trunk/utils/opt-viewer/opt-viewer.py Fri Jan 27 00:39:01 2017
@@ -123,7 +123,7 @@ class Remark(yaml.YAMLObject):
 
     @property
     def key(self):
-        return (self.__class__, self.Pass, self.Name, self.File, self.Line, self.Column, self.message)
+        return (self.__class__, self.Pass, self.Name, self.File, self.Line, self.Column, self.Function, self.message)
 
 
 class Analysis(Remark):




More information about the llvm-commits mailing list