From 4e3b903a957394e755dd0d3c89c17e9c46ee110e Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 27 Feb 2015 21:43:14 +0000 Subject: Reduce double set lookups. llvm-svn: 230798 --- llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h') diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h index ad7411f7775..719af410245 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h @@ -622,8 +622,7 @@ public: void removeValue(const Value *V) { // This is to support hack in lowerCallFromStatepoint // Should be removed when hack is resolved - if (NodeMap.count(V)) - NodeMap.erase(V); + NodeMap.erase(V); } void setUnusedArgValue(const Value *V, SDValue NewN) { -- cgit v1.2.3