diff options
author | Kazu Hirata <kazu@google.com> | 2025-02-27 01:46:18 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-27 01:46:18 -0800 |
commit | 4913e7bb6934c57e60db076a0331ac45ad0439f6 (patch) | |
tree | 9b3ecb9d87864fc00e5a88da5baa459ac0834396 /llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp | |
parent | 25ebdfc3dd26b023b8591118492be1fea2574f03 (diff) | |
download | llvm-4913e7bb6934c57e60db076a0331ac45ad0439f6.zip llvm-4913e7bb6934c57e60db076a0331ac45ad0439f6.tar.gz llvm-4913e7bb6934c57e60db076a0331ac45ad0439f6.tar.bz2 |
[SelectionDAG] Avoid repeated hash lookups (NFC) (#128999)
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp index 33c6341..8bc288f 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp @@ -343,9 +343,9 @@ void FunctionLoweringInfo::set(const Function &fn, MachineFunction &mf, for (auto &KV : EHInfo.UnwindDestToSrcs) { const auto *Dest = cast<const BasicBlock *>(KV.first); MachineBasicBlock *DestMBB = getMBB(Dest); - UnwindDestToSrcs[DestMBB] = SmallPtrSet<BBOrMBB, 4>(); + auto &Srcs = UnwindDestToSrcs[DestMBB]; for (const auto P : KV.second) - UnwindDestToSrcs[DestMBB].insert(getMBB(cast<const BasicBlock *>(P))); + Srcs.insert(getMBB(cast<const BasicBlock *>(P))); } EHInfo.UnwindDestToSrcs = std::move(UnwindDestToSrcs); } |