OSDN Git Service

[opt-viewer] Include the function in the remark key
authorAdam Nemet <anemet@apple.com>
Fri, 27 Jan 2017 06:39:01 +0000 (06:39 +0000)
committerAdam Nemet <anemet@apple.com>
Fri, 27 Jan 2017 06:39:01 +0000 (06:39 +0000)
Avoid uniquing remarks with different the inlining context (Function).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293262 91177308-0d34-0410-b5e6-96231b3b80d8

utils/opt-viewer/opt-viewer.py

index adcf3ce..0c8c041 100755 (executable)
@@ -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):