mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-13 07:00:59 +00:00
Make MBBMap a DenseMap instead of a std::map.
llvm-svn: 55220
This commit is contained in:
parent
a9d5f9b006
commit
a5ce6c1747
@ -17,7 +17,6 @@
|
|||||||
#include "llvm/BasicBlock.h"
|
#include "llvm/BasicBlock.h"
|
||||||
#include "llvm/ADT/DenseMap.h"
|
#include "llvm/ADT/DenseMap.h"
|
||||||
#include "llvm/CodeGen/SelectionDAGNodes.h"
|
#include "llvm/CodeGen/SelectionDAGNodes.h"
|
||||||
#include <map>
|
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
@ -53,7 +52,7 @@ public:
|
|||||||
BasicBlock::iterator
|
BasicBlock::iterator
|
||||||
SelectInstructions(BasicBlock::iterator Begin, BasicBlock::iterator End,
|
SelectInstructions(BasicBlock::iterator Begin, BasicBlock::iterator End,
|
||||||
DenseMap<const Value*, unsigned> &ValueMap,
|
DenseMap<const Value*, unsigned> &ValueMap,
|
||||||
std::map<const BasicBlock*, MachineBasicBlock *> &MBBMap,
|
DenseMap<const BasicBlock*, MachineBasicBlock *> &MBBMap,
|
||||||
MachineBasicBlock *MBB);
|
MachineBasicBlock *MBB);
|
||||||
|
|
||||||
virtual ~FastISel();
|
virtual ~FastISel();
|
||||||
|
@ -145,7 +145,7 @@ BasicBlock::iterator
|
|||||||
FastISel::SelectInstructions(BasicBlock::iterator Begin,
|
FastISel::SelectInstructions(BasicBlock::iterator Begin,
|
||||||
BasicBlock::iterator End,
|
BasicBlock::iterator End,
|
||||||
DenseMap<const Value*, unsigned> &ValueMap,
|
DenseMap<const Value*, unsigned> &ValueMap,
|
||||||
std::map<const BasicBlock*,
|
DenseMap<const BasicBlock*,
|
||||||
MachineBasicBlock *> &MBBMap,
|
MachineBasicBlock *> &MBBMap,
|
||||||
MachineBasicBlock *mbb) {
|
MachineBasicBlock *mbb) {
|
||||||
MBB = mbb;
|
MBB = mbb;
|
||||||
|
@ -320,7 +320,7 @@ namespace llvm {
|
|||||||
FunctionLoweringInfo(TargetLowering &TLI, Function &Fn,MachineFunction &MF);
|
FunctionLoweringInfo(TargetLowering &TLI, Function &Fn,MachineFunction &MF);
|
||||||
|
|
||||||
/// MBBMap - A mapping from LLVM basic blocks to their machine code entry.
|
/// 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,
|
/// ValueMap - Since we emit code for the function a basic block at a time,
|
||||||
/// we must remember which virtual registers hold the values for
|
/// 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
|
/// StaticAllocaMap - Keep track of frame indices for fixed sized allocas in
|
||||||
/// the entry block. This allows the allocas to be efficiently referenced
|
/// the entry block. This allows the allocas to be efficiently referenced
|
||||||
/// anywhere in the function.
|
/// anywhere in the function.
|
||||||
std::map<const AllocaInst*, int> StaticAllocaMap;
|
DenseMap<const AllocaInst*, int> StaticAllocaMap;
|
||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
SmallSet<Instruction*, 8> CatchInfoLost;
|
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
|
// If this is a static alloca, generate it as the frameindex instead of
|
||||||
// computation.
|
// computation.
|
||||||
if (const AllocaInst *AI = dyn_cast<AllocaInst>(V)) {
|
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);
|
FuncInfo.StaticAllocaMap.find(AI);
|
||||||
if (SI != FuncInfo.StaticAllocaMap.end())
|
if (SI != FuncInfo.StaticAllocaMap.end())
|
||||||
return DAG.getFrameIndex(SI->second, TLI.getPointerTy());
|
return DAG.getFrameIndex(SI->second, TLI.getPointerTy());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user