diff options
author | Chris Lattner <sabre@nondot.org> | 2005-09-13 19:31:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-09-13 19:31:44 +0000 |
commit | 82da52299c7f25c6856c1cd5e3e46bbb40427ffb (patch) | |
tree | d9bddba2512460e4f46940af761488d4be137919 /lib/Target/Alpha/AlphaISelPattern.cpp | |
parent | fa57702388f139e964befecb4b98c7dfe836945f (diff) | |
download | external_llvm-82da52299c7f25c6856c1cd5e3e46bbb40427ffb.zip external_llvm-82da52299c7f25c6856c1cd5e3e46bbb40427ffb.tar.gz external_llvm-82da52299c7f25c6856c1cd5e3e46bbb40427ffb.tar.bz2 |
This code is no longer needed, it is moved to the target-indep code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23332 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaISelPattern.cpp')
-rw-r--r-- | lib/Target/Alpha/AlphaISelPattern.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/Target/Alpha/AlphaISelPattern.cpp b/lib/Target/Alpha/AlphaISelPattern.cpp index 8a377d0..1a20b29 100644 --- a/lib/Target/Alpha/AlphaISelPattern.cpp +++ b/lib/Target/Alpha/AlphaISelPattern.cpp @@ -116,8 +116,6 @@ public: CCInvMap.clear(); } - virtual void EmitFunctionEntryCode(Function &Fn, MachineFunction &MF); - unsigned SelectExpr(SDOperand N); void Select(SDOperand N); @@ -135,28 +133,6 @@ public: }; } -void AlphaISel::EmitFunctionEntryCode(Function &Fn, MachineFunction &MF) { - // If this function has live-in values, emit the copies from pregs to vregs at - // the top of the function, before anything else. - MachineBasicBlock *BB = MF.begin(); - if (MF.livein_begin() != MF.livein_end()) { - SSARegMap *RegMap = MF.getSSARegMap(); - for (MachineFunction::livein_iterator LI = MF.livein_begin(), - E = MF.livein_end(); LI != E; ++LI) { - const TargetRegisterClass *RC = RegMap->getRegClass(LI->second); - if (RC == Alpha::GPRCRegisterClass) { - BuildMI(BB, Alpha::BIS, 2, LI->second).addReg(LI->first) - .addReg(LI->first); - } else if (RC == Alpha::FPRCRegisterClass) { - BuildMI(BB, Alpha::CPYS, 2, LI->second).addReg(LI->first) - .addReg(LI->first); - } else { - assert(0 && "Unknown regclass!"); - } - } - } -} - static bool isSIntImmediate(SDOperand N, int64_t& Imm) { // test for constant if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N)) { |