Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAGISel.cpp updated: 1.356 -> 1.357 --- Log message: Switch VAlueMap from std::map to DenseMap. --- Diffs of the changes: (+3 -3) SelectionDAGISel.cpp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.356 llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.357 --- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.356 Sat Feb 3 19:31:47 2007 +++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Sat Feb 3 19:35:11 2007 @@ -171,7 +171,7 @@ /// ValueMap - Since we emit code for the function a basic block at a time, /// we must remember which virtual registers hold the values for /// cross-basic-block values. - std::map<const Value*, unsigned> ValueMap; + DenseMap<const Value*, unsigned> ValueMap; /// StaticAllocaMap - Keep track of frame indices for fixed sized allocas in /// the entry block. This allows the allocas to be efficiently referenced @@ -658,7 +658,7 @@ return DAG.getFrameIndex(SI->second, TLI.getPointerTy()); } - std::map<const Value*, unsigned>::const_iterator VMI = + DenseMap<const Value*, unsigned>::iterator VMI = FuncInfo.ValueMap.find(V); assert(VMI != FuncInfo.ValueMap.end() && "Value not in map!"); @@ -4026,7 +4026,7 @@ // blocks are available as virtual registers. for (BasicBlock::iterator I = LLVMBB->begin(), E = LLVMBB->end(); I != E;++I) if (!I->use_empty() && !isa<PHINode>(I)) { - std::map<const Value*, unsigned>::iterator VMI =FuncInfo.ValueMap.find(I); + DenseMap<const Value*, unsigned>::iterator VMI =FuncInfo.ValueMap.find(I); if (VMI != FuncInfo.ValueMap.end()) UnorderedChains.push_back( SDL.CopyValueToVirtualRegister(I, VMI->second)); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits