[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPC32RegisterInfo.cpp
Nate Begeman
natebegeman at mac.com
Sat Apr 9 20:59:53 PDT 2005
Changes in directory llvm/lib/Target/PowerPC:
PPC32RegisterInfo.cpp updated: 1.8 -> 1.9
---
Log message:
Remove unnecessary Implicit Defs. Since r0 is not in allocation, we do not
have to inform the register allocator it might be stepped on.
---
Diffs of the changes: (+0 -4)
PPC32RegisterInfo.cpp | 4 ----
1 files changed, 4 deletions(-)
Index: llvm/lib/Target/PowerPC/PPC32RegisterInfo.cpp
diff -u llvm/lib/Target/PowerPC/PPC32RegisterInfo.cpp:1.8 llvm/lib/Target/PowerPC/PPC32RegisterInfo.cpp:1.9
--- llvm/lib/Target/PowerPC/PPC32RegisterInfo.cpp:1.8 Mon Apr 4 16:48:13 2005
+++ llvm/lib/Target/PowerPC/PPC32RegisterInfo.cpp Sat Apr 9 22:59:42 2005
@@ -84,10 +84,8 @@
unsigned OC = Opcode[getIdx(getClass(SrcReg))];
if (SrcReg == PPC::LR) {
BuildMI(MBB, MI, PPC::MFLR, 1, PPC::R11).addReg(PPC::LR);
- BuildMI(MBB, MI, PPC::IMPLICIT_DEF, 0, PPC::R0);
addFrameReference(BuildMI(MBB, MI, OC, 3).addReg(PPC::R11),FrameIdx);
} else {
- BuildMI(MBB, MI, PPC::IMPLICIT_DEF, 0, PPC::R0);
addFrameReference(BuildMI(MBB, MI, OC, 3).addReg(SrcReg),FrameIdx);
}
}
@@ -101,11 +99,9 @@
};
unsigned OC = Opcode[getIdx(getClass(DestReg))];
if (DestReg == PPC::LR) {
- BuildMI(MBB, MI, PPC::IMPLICIT_DEF, 0, PPC::R0);
addFrameReference(BuildMI(MBB, MI, OC, 2, PPC::R11), FrameIdx);
BuildMI(MBB, MI, PPC::MTLR, 1).addReg(PPC::R11);
} else {
- BuildMI(MBB, MI, PPC::IMPLICIT_DEF, 0, PPC::R0);
addFrameReference(BuildMI(MBB, MI, OC, 2, DestReg), FrameIdx);
}
}
More information about the llvm-commits
mailing list