[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Jul 27 22:23:54 PDT 2005
Changes in directory llvm/lib/Target/PowerPC:
PPC32ISelPattern.cpp updated: 1.108 -> 1.109
---
Log message:
Eliminate an extra copy from R1 that Nate noticed on function calls that
have to write arguments to the stack
---
Diffs of the changes: (+2 -1)
PPC32ISelPattern.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
diff -u llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp:1.108 llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp:1.109
--- llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp:1.108 Wed Jul 27 23:42:11 2005
+++ llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp Thu Jul 28 00:23:43 2005
@@ -1293,7 +1293,8 @@
MVT::ValueType DestType = N.getValueType();
if (Node->getOpcode() == ISD::CopyFromReg &&
- MRegisterInfo::isVirtualRegister(cast<RegSDNode>(Node)->getReg()))
+ (MRegisterInfo::isVirtualRegister(cast<RegSDNode>(Node)->getReg()) ||
+ cast<RegSDNode>(Node)->getReg() == PPC::R1))
// Just use the specified register as our input.
return cast<RegSDNode>(Node)->getReg();
More information about the llvm-commits
mailing list