[llvm] c0c1722 - [Analysis] Avoid repeated hash lookups (NFC) (#127955)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 20 08:55:40 PST 2025
Author: Kazu Hirata
Date: 2025-02-20T08:55:35-08:00
New Revision: c0c172213b6124a672ee64786260f8860027413f
URL: https://github.com/llvm/llvm-project/commit/c0c172213b6124a672ee64786260f8860027413f
DIFF: https://github.com/llvm/llvm-project/commit/c0c172213b6124a672ee64786260f8860027413f.diff
LOG: [Analysis] Avoid repeated hash lookups (NFC) (#127955)
Added:
Modified:
llvm/lib/Analysis/LoopAccessAnalysis.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/LoopAccessAnalysis.cpp b/llvm/lib/Analysis/LoopAccessAnalysis.cpp
index cab70c5c01a45..b3a42ed3377cd 100644
--- a/llvm/lib/Analysis/LoopAccessAnalysis.cpp
+++ b/llvm/lib/Analysis/LoopAccessAnalysis.cpp
@@ -1431,8 +1431,8 @@ void AccessAnalysis::processMemAccesses() {
typedef SmallVector<const Value *, 16> ValueVector;
ValueVector TempObjects;
- UnderlyingObjects[Ptr] = {};
SmallVector<const Value *, 16> &UOs = UnderlyingObjects[Ptr];
+ UOs = {};
::getUnderlyingObjects(Ptr, UOs, LI);
LLVM_DEBUG(dbgs()
<< "Underlying objects for pointer " << *Ptr << "\n");
More information about the llvm-commits
mailing list