Skip to content

Commit c0c1722

Browse files
[Analysis] Avoid repeated hash lookups (NFC) (#127955)
1 parent e83ad81 commit c0c1722

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Analysis/LoopAccessAnalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1431,8 +1431,8 @@ void AccessAnalysis::processMemAccesses() {
14311431
typedef SmallVector<const Value *, 16> ValueVector;
14321432
ValueVector TempObjects;
14331433

1434-
UnderlyingObjects[Ptr] = {};
14351434
SmallVector<const Value *, 16> &UOs = UnderlyingObjects[Ptr];
1435+
UOs = {};
14361436
::getUnderlyingObjects(Ptr, UOs, LI);
14371437
LLVM_DEBUG(dbgs()
14381438
<< "Underlying objects for pointer " << *Ptr << "\n");

0 commit comments

Comments
 (0)