mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
Remove unnecessary calls to getSubtarget/getSubtargetImpl from the
MSP430 backend. llvm-svn: 227517
This commit is contained in:
parent
6353559d63
commit
52da93dd7a
@ -92,14 +92,9 @@ namespace {
|
||||
///
|
||||
namespace {
|
||||
class MSP430DAGToDAGISel : public SelectionDAGISel {
|
||||
const MSP430TargetLowering &Lowering;
|
||||
const MSP430Subtarget &Subtarget;
|
||||
|
||||
public:
|
||||
MSP430DAGToDAGISel(MSP430TargetMachine &TM, CodeGenOpt::Level OptLevel)
|
||||
: SelectionDAGISel(TM, OptLevel),
|
||||
Lowering(*TM.getSubtargetImpl()->getTargetLowering()),
|
||||
Subtarget(*TM.getSubtargetImpl()) {}
|
||||
: SelectionDAGISel(TM, OptLevel) {}
|
||||
|
||||
const char *getPassName() const override {
|
||||
return "MSP430 DAG->DAG Pattern Instruction Selection";
|
||||
|
@ -1201,8 +1201,7 @@ MSP430TargetLowering::EmitShiftInstr(MachineInstr *MI,
|
||||
MachineFunction *F = BB->getParent();
|
||||
MachineRegisterInfo &RI = F->getRegInfo();
|
||||
DebugLoc dl = MI->getDebugLoc();
|
||||
const TargetInstrInfo &TII =
|
||||
*getTargetMachine().getSubtargetImpl()->getInstrInfo();
|
||||
const TargetInstrInfo &TII = *F->getSubtarget().getInstrInfo();
|
||||
|
||||
unsigned Opc;
|
||||
const TargetRegisterClass * RC;
|
||||
@ -1313,8 +1312,7 @@ MSP430TargetLowering::EmitInstrWithCustomInserter(MachineInstr *MI,
|
||||
Opc == MSP430::Srl8 || Opc == MSP430::Srl16)
|
||||
return EmitShiftInstr(MI, BB);
|
||||
|
||||
const TargetInstrInfo &TII =
|
||||
*getTargetMachine().getSubtargetImpl()->getInstrInfo();
|
||||
const TargetInstrInfo &TII = *BB->getParent()->getSubtarget().getInstrInfo();
|
||||
DebugLoc dl = MI->getDebugLoc();
|
||||
|
||||
assert((Opc == MSP430::Select16 || Opc == MSP430::Select8) &&
|
||||
|
Loading…
Reference in New Issue
Block a user