[llvm] [PowerPC] Use DenseMap::operator[] (NFC) (PR #107044)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 2 20:21:50 PDT 2024
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/107044
None
>From 0f9e19a19764dcae4af474d6e5d7818891de1c37 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Mon, 2 Sep 2024 20:17:16 -0700
Subject: [PATCH] [PowerPC] Use DenseMap::operator[] (NFC)
---
llvm/lib/Target/PowerPC/PPCFrameLowering.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp b/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
index a57ed33bda9c77..f7188b856461b7 100644
--- a/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
@@ -2424,8 +2424,7 @@ bool PPCFrameLowering::spillCalleeSavedRegisters(
// or two GPRs, so we need table to record information for later save/restore.
for (const CalleeSavedInfo &Info : CSI) {
if (Info.isSpilledToReg()) {
- auto &SpilledVSR =
- VSRContainingGPRs.FindAndConstruct(Info.getDstReg()).second;
+ auto &SpilledVSR = VSRContainingGPRs[Info.getDstReg()];
assert(SpilledVSR.second == 0 &&
"Can't spill more than two GPRs into VSR!");
if (SpilledVSR.first == 0)
More information about the llvm-commits
mailing list