diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2016-06-17 18:59:41 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2016-06-17 18:59:41 +0000 |
commit | 4dea8f542b59973ea19f1826b6d18c99d7a047c1 (patch) | |
tree | 85665abd293ea9ee6be3895d646093c2428659db /llvm/lib/CodeGen/LiveDebugValues.cpp | |
parent | 28a9e7f4ba8d3bb8cca4d521f0089cd449227769 (diff) | |
download | llvm-4dea8f542b59973ea19f1826b6d18c99d7a047c1.zip llvm-4dea8f542b59973ea19f1826b6d18c99d7a047c1.tar.gz llvm-4dea8f542b59973ea19f1826b6d18c99d7a047c1.tar.bz2 |
Avoid duplicated map lookups. No functionality change intended.
llvm-svn: 273030
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveDebugValues.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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]); } } |