aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib
diff options
context:
space:
mode:
authorMichael Maitland <michaeltmaitland@gmail.com>2025-01-29 08:21:59 -0800
committerMichael Maitland <michaeltmaitland@gmail.com>2025-01-29 08:21:59 -0800
commit35defdf4707dfa58802188d2aad1298cddb44cb6 (patch)
treeab86c8a72f30a25e0e4322408f2f02e70a9e9a61 /llvm/lib
parent3ce97e4aa98ad6a3502528818ff11eee89ef2fae (diff)
downloadllvm-35defdf4707dfa58802188d2aad1298cddb44cb6.zip
llvm-35defdf4707dfa58802188d2aad1298cddb44cb6.tar.gz
llvm-35defdf4707dfa58802188d2aad1298cddb44cb6.tar.bz2
Revert "[ReachingDefAnalysis][NFC] Use at instead of lookup for DenseMap access"
This reverts commit 3ce97e4aa98ad6a3502528818ff11eee89ef2fae. Pushed to main prematurley.
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/ReachingDefAnalysis.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/ReachingDefAnalysis.cpp b/llvm/lib/CodeGen/ReachingDefAnalysis.cpp
index f385534..3d88c68 100644
--- a/llvm/lib/CodeGen/ReachingDefAnalysis.cpp
+++ b/llvm/lib/CodeGen/ReachingDefAnalysis.cpp
@@ -348,8 +348,8 @@ int ReachingDefAnalysis::getReachingDef(MachineInstr *MI, Register Reg) const {
if (Register::isStackSlot(Reg)) {
int FrameIndex = Register::stackSlot2Index(Reg);
- int Key = FrameIndex - ObjectIndexBegin;
- for (int Def : MBBFrameObjsReachingDefs.at(MBBNumber).at(Key)) {
+ for (int Def : MBBFrameObjsReachingDefs.lookup(MBBNumber).lookup(
+ FrameIndex - ObjectIndexBegin)) {
if (Def >= InstId)
break;
DefRes = Def;