commit | 4dea8f542b59973ea19f1826b6d18c99d7a047c1 | [log] [tgz] |
---|---|---|
author | Benjamin Kramer <benny.kra@googlemail.com> | Fri Jun 17 18:59:41 2016 +0000 |
committer | Benjamin Kramer <benny.kra@googlemail.com> | Fri Jun 17 18:59:41 2016 +0000 |
tree | 85665abd293ea9ee6be3895d646093c2428659db | |
parent | 28a9e7f4ba8d3bb8cca4d521f0089cd449227769 [diff] |
Avoid duplicated map lookups. No functionality change intended. llvm-svn: 273030
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 @@ 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]); } }