From 4dea8f542b59973ea19f1826b6d18c99d7a047c1 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 17 Jun 2016 18:59:41 +0000 Subject: Avoid duplicated map lookups. No functionality change intended. llvm-svn: 273030 --- llvm/lib/CodeGen/LiveDebugValues.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/LiveDebugValues.cpp') diff --git a/llvm/lib/CodeGen/LiveDebugValues.cpp b/llvm/lib/CodeGen/LiveDebugValues.cpp index 1297273..4ff88d5 100644 --- a/llvm/lib/CodeGen/LiveDebugValues.cpp +++ b/llvm/lib/CodeGen/LiveDebugValues.cpp @@ -487,8 +487,7 @@ bool LiveDebugValues::ExtendRanges(MachineFunction &MF) { if (OLChanged) { OLChanged = false; for (auto s : MBB->successors()) - if (!OnPending.count(s)) { - OnPending.insert(s); + if (OnPending.insert(s).second) { Pending.push(BBToOrder[s]); } } -- cgit v1.1