diff options
| author | Dan Gohman <gohman@apple.com> | 2009-08-01 03:51:09 +0000 | 
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-08-01 03:51:09 +0000 | 
| commit | 7153692bdf939b3f0918f05672516554028c9be6 (patch) | |
| tree | 7fedfe7cb96057761ae12c70d9f565d6a7ac7a80 /llvm/lib/CodeGen | |
| parent | edfad17d9b5231bae689c8c5d24833a34269ece9 (diff) | |
| download | bcm5719-llvm-7153692bdf939b3f0918f05672516554028c9be6.tar.gz bcm5719-llvm-7153692bdf939b3f0918f05672516554028c9be6.zip | |
Minor code simplifications.
llvm-svn: 77769
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 16 | 
1 files changed, 8 insertions, 8 deletions
| diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 5857db10815..bd26478d59c 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -314,8 +314,8 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) {    const TargetInstrInfo &TII = *TM.getInstrInfo();    const TargetRegisterInfo &TRI = *TM.getRegisterInfo(); -  if (MF->getFunction()->hasGC()) -    GFI = &getAnalysis<GCModuleInfo>().getFunctionInfo(*MF->getFunction()); +  if (Fn.hasGC()) +    GFI = &getAnalysis<GCModuleInfo>().getFunctionInfo(Fn);    else      GFI = 0;    RegInfo = &MF->getRegInfo(); @@ -550,10 +550,10 @@ void SelectionDAGISel::ComputeLiveOutVRegInfo() {      // Only install this information if it tells us something.      if (NumSignBits != 1 || KnownZero != 0 || KnownOne != 0) {        DestReg -= TargetRegisterInfo::FirstVirtualRegister; -      FunctionLoweringInfo &FLI = CurDAG->getFunctionLoweringInfo(); -      if (DestReg >= FLI.LiveOutRegInfo.size()) -        FLI.LiveOutRegInfo.resize(DestReg+1); -      FunctionLoweringInfo::LiveOutInfo &LOI = FLI.LiveOutRegInfo[DestReg]; +      if (DestReg >= FuncInfo->LiveOutRegInfo.size()) +        FuncInfo->LiveOutRegInfo.resize(DestReg+1); +      FunctionLoweringInfo::LiveOutInfo &LOI = +        FuncInfo->LiveOutRegInfo[DestReg];        LOI.NumSignBits = NumSignBits;        LOI.KnownOne = KnownOne;        LOI.KnownZero = KnownZero; @@ -569,7 +569,7 @@ void SelectionDAGISel::CodeGenAndEmitDAG() {    if (ViewDAGCombine1 || ViewLegalizeTypesDAGs || ViewLegalizeDAGs ||        ViewDAGCombine2 || ViewDAGCombineLT || ViewISelDAGs || ViewSchedDAGs ||        ViewSUnitDAGs) -    BlockName = CurDAG->getMachineFunction().getFunction()->getNameStr() + ":" + +    BlockName = MF->getFunction()->getNameStr() + ":" +                  BB->getBasicBlock()->getNameStr();    DOUT << "Initial selection DAG:\n"; @@ -1224,7 +1224,7 @@ SelectInlineAsmMemoryOperands(std::vector<SDValue> &Ops) {        }        // Add this to the output node. -      MVT IntPtrTy = CurDAG->getTargetLoweringInfo().getPointerTy(); +      MVT IntPtrTy = TLI.getPointerTy();        Ops.push_back(CurDAG->getTargetConstant(4/*MEM*/ | (SelOps.size()<< 3),                                                IntPtrTy));        Ops.insert(Ops.end(), SelOps.begin(), SelOps.end()); | 

