Skip to content

Commit 4eef3de

Browse files
[Mips] Avoid repeated hash lookups (NFC) (llvm#129420)
1 parent c1211d5 commit 4eef3de

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Target/Mips/Mips16ISelLowering.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,9 +435,8 @@ getOpndList(SmallVectorImpl<SDValue> &Ops,
435435
Mips16IntrinsicHelperType IntrinsicFind = { Symbol, "" };
436436
const Mips16HardFloatInfo::FuncSignature *Signature =
437437
Mips16HardFloatInfo::findFuncSignature(Symbol);
438-
if (!IsPICCall && (Signature && (FuncInfo->StubsNeeded.find(Symbol) ==
439-
FuncInfo->StubsNeeded.end()))) {
440-
FuncInfo->StubsNeeded[Symbol] = Signature;
438+
if (!IsPICCall && Signature &&
439+
FuncInfo->StubsNeeded.try_emplace(Symbol, Signature).second) {
441440
//
442441
// S2 is normally saved if the stub is for a function which
443442
// returns a float or double value and is not otherwise. This is

0 commit comments

Comments
 (0)