File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -179,10 +179,9 @@ class EquivalenceClasses {
179
179
return member_iterator (nullptr );
180
180
}
181
181
182
- // / findValue - Return an iterator to the specified value. If it does not
183
- // / exist, end() is returned.
184
- iterator findValue (const ElemTy &V) const {
185
- return TheMapping.find (V);
182
+ // / Returns true if \p V is contained an equivalence class.
183
+ bool contains (const ElemTy &V) const {
184
+ return TheMapping.find (V) != TheMapping.end ();
186
185
}
187
186
188
187
// / getLeaderValue - Return the leader for the specified value that is in the
Original file line number Diff line number Diff line change @@ -1230,7 +1230,7 @@ bool AccessAnalysis::canCheckPtrAtRT(
1230
1230
[this ](const Value *Ptr) {
1231
1231
MemAccessInfo AccessWrite (const_cast <Value *>(Ptr),
1232
1232
true );
1233
- return DepCands.findValue (AccessWrite) == DepCands. end ( );
1233
+ return ! DepCands.contains (AccessWrite);
1234
1234
})) &&
1235
1235
" Can only skip updating CanDoRT below, if all entries in AS "
1236
1236
" are reads or there is at most 1 entry" );
You can’t perform that action at this time.
0 commit comments