forked from OSchip/llvm-project
[mips] Implement getRepRegClassFor in MipsSETargetLowering. This function is
called in several places in ScheduleDAGRRList.cpp. llvm-svn: 178393
This commit is contained in:
parent
cd77e15cfb
commit
3a34d14745
|
@ -15,6 +15,7 @@
|
|||
#define MipsSEISELLOWERING_H
|
||||
|
||||
#include "MipsISelLowering.h"
|
||||
#include "MipsRegisterInfo.h"
|
||||
|
||||
namespace llvm {
|
||||
class MipsSETargetLowering : public MipsTargetLowering {
|
||||
|
@ -26,6 +27,14 @@ namespace llvm {
|
|||
virtual MachineBasicBlock *
|
||||
EmitInstrWithCustomInserter(MachineInstr *MI, MachineBasicBlock *MBB) const;
|
||||
|
||||
virtual const TargetRegisterClass *getRepRegClassFor(MVT VT) const {
|
||||
if (VT == MVT::Untyped)
|
||||
return Subtarget->hasDSP() ? &Mips::ACRegsDSPRegClass :
|
||||
&Mips::ACRegsRegClass;
|
||||
|
||||
return TargetLowering::getRepRegClassFor(VT);
|
||||
}
|
||||
|
||||
private:
|
||||
virtual bool
|
||||
isEligibleForTailCallOptimization(const MipsCC &MipsCCInfo,
|
||||
|
|
Loading…
Reference in New Issue