[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelPattern.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Sep 13 12:31:56 PDT 2005
Changes in directory llvm/lib/Target/X86:
X86ISelPattern.cpp updated: 1.177 -> 1.178
---
Log message:
This code is no longer needed, it is moved to the target-indep code
---
Diffs of the changes: (+0 -25)
X86ISelPattern.cpp | 25 -------------------------
1 files changed, 25 deletions(-)
Index: llvm/lib/Target/X86/X86ISelPattern.cpp
diff -u llvm/lib/Target/X86/X86ISelPattern.cpp:1.177 llvm/lib/Target/X86/X86ISelPattern.cpp:1.178
--- llvm/lib/Target/X86/X86ISelPattern.cpp:1.177 Thu Sep 1 19:16:09 2005
+++ llvm/lib/Target/X86/X86ISelPattern.cpp Tue Sep 13 14:31:44 2005
@@ -1156,31 +1156,6 @@
}
void ISel::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 == X86::R8RegisterClass) {
- BuildMI(BB, X86::MOV8rr, 1, LI->second).addReg(LI->first);
- } else if (RC == X86::R16RegisterClass) {
- BuildMI(BB, X86::MOV16rr, 1, LI->second).addReg(LI->first);
- } else if (RC == X86::R32RegisterClass) {
- BuildMI(BB, X86::MOV32rr, 1, LI->second).addReg(LI->first);
- } else if (RC == X86::RFPRegisterClass) {
- BuildMI(BB, X86::FpMOV, 1, LI->second).addReg(LI->first);
- } else if (RC == X86::RXMMRegisterClass) {
- BuildMI(BB, X86::MOVAPDrr, 1, LI->second).addReg(LI->first);
- } else {
- assert(0 && "Unknown regclass!");
- }
- }
- }
-
-
// If this is main, emit special code for main.
if (Fn.hasExternalLinkage() && Fn.getName() == "main")
EmitSpecialCodeForMain(BB, MF.getFrameInfo());
More information about the llvm-commits
mailing list