projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f34134
)
Move equality function for AliasAnalysis::Location from DenseMapInfo to Location...
author
Daniel Berlin
<dberlin@dberlin.org>
Thu, 30 Apr 2015 16:15:07 +0000
(16:15 +0000)
committer
Daniel Berlin
<dberlin@dberlin.org>
Thu, 30 Apr 2015 16:15:07 +0000
(16:15 +0000)
llvm-svn: 236237
llvm/include/llvm/Analysis/AliasAnalysis.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/Analysis/AliasAnalysis.h
b/llvm/include/llvm/Analysis/AliasAnalysis.h
index
6999bd1
..
ac9d21c
100644
(file)
--- a/
llvm/include/llvm/Analysis/AliasAnalysis.h
+++ b/
llvm/include/llvm/Analysis/AliasAnalysis.h
@@
-134,6
+134,10
@@
public:
Copy.AATags = AAMDNodes();
return Copy;
}
+
+ bool operator==(const AliasAnalysis::Location &Other) const {
+ return Ptr == Other.Ptr && Size == Other.Size && AATags == Other.AATags;
+ }
};
/// getLocation - Fill in Loc with information about the memory reference by
@@
-615,9
+619,7
@@
struct DenseMapInfo<AliasAnalysis::Location> {
}
static bool isEqual(const AliasAnalysis::Location &LHS,
const AliasAnalysis::Location &RHS) {
- return LHS.Ptr == RHS.Ptr &&
- LHS.Size == RHS.Size &&
- LHS.AATags == RHS.AATags;
+ return LHS == RHS;
}
};