summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-08-23 02:44:46 +0000
committerDan Gohman <gohman@apple.com>2008-08-23 02:44:46 +0000
commit48a362359122be2bb137d24c5caf32c356f848b4 (patch)
treec7182cc1182a0252c4d5db1e76cfe3062c811539 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parenteb0cee91f679de1601313852f82e8e6f3f33cfbf (diff)
downloadbcm5719-llvm-48a362359122be2bb137d24c5caf32c356f848b4.tar.gz
bcm5719-llvm-48a362359122be2bb137d24c5caf32c356f848b4.zip
Make MBBMap a DenseMap instead of a std::map.
llvm-svn: 55220
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index e789c4e41c1..7ec5b8534dd 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -320,7 +320,7 @@ namespace llvm {
FunctionLoweringInfo(TargetLowering &TLI, Function &Fn,MachineFunction &MF);
/// MBBMap - A mapping from LLVM basic blocks to their machine code entry.
- std::map<const BasicBlock*, MachineBasicBlock *> MBBMap;
+ DenseMap<const BasicBlock*, MachineBasicBlock *> MBBMap;
/// ValueMap - Since we emit code for the function a basic block at a time,
/// we must remember which virtual registers hold the values for
@@ -330,7 +330,7 @@ namespace llvm {
/// StaticAllocaMap - Keep track of frame indices for fixed sized allocas in
/// the entry block. This allows the allocas to be efficiently referenced
/// anywhere in the function.
- std::map<const AllocaInst*, int> StaticAllocaMap;
+ DenseMap<const AllocaInst*, int> StaticAllocaMap;
#ifndef NDEBUG
SmallSet<Instruction*, 8> CatchInfoLost;
@@ -1256,7 +1256,7 @@ SDValue SelectionDAGLowering::getValue(const Value *V) {
// If this is a static alloca, generate it as the frameindex instead of
// computation.
if (const AllocaInst *AI = dyn_cast<AllocaInst>(V)) {
- std::map<const AllocaInst*, int>::iterator SI =
+ DenseMap<const AllocaInst*, int>::iterator SI =
FuncInfo.StaticAllocaMap.find(AI);
if (SI != FuncInfo.StaticAllocaMap.end())
return DAG.getFrameIndex(SI->second, TLI.getPointerTy());
OpenPOWER on IntegriCloud