[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
Nate Begeman
natebegeman at mac.com
Thu Mar 31 21:57:28 PST 2005
Changes in directory llvm/lib/Target/PowerPC:
PPC32ISelPattern.cpp updated: 1.27 -> 1.28
---
Log message:
Fix stores to global addresses
Fix calls with no arguments
---
Diffs of the changes: (+3 -7)
PPC32ISelPattern.cpp | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
Index: llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp
diff -u llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp:1.27 llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp:1.28
--- llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp:1.27 Thu Mar 31 22:45:11 2005
+++ llvm/lib/Target/PowerPC/PPC32ISelPattern.cpp Thu Mar 31 23:57:17 2005
@@ -210,7 +210,8 @@
unsigned NumBytes = 24;
if (Args.empty()) {
- NumBytes = 0; // Save zero bytes.
+ Chain = DAG.getNode(ISD::ADJCALLSTACKDOWN, MVT::Other, Chain,
+ DAG.getConstant(NumBytes, getPointerTy()));
} else {
for (unsigned i = 0, e = Args.size(); i != e; ++i)
switch (getValueType(Args[i].second)) {
@@ -1545,12 +1546,7 @@
}
}
- if (Address.getOpcode() == ISD::GlobalAddress)
- {
- BuildMI(BB, Opc, 2).addReg(Tmp1)
- .addGlobalAddress(cast<GlobalAddressSDNode>(Address)->getGlobal());
- }
- else if(Address.getOpcode() == ISD::FrameIndex)
+ if(Address.getOpcode() == ISD::FrameIndex)
{
Tmp2 = cast<FrameIndexSDNode>(Address)->getIndex();
addFrameReference(BuildMI(BB, Opc, 3).addReg(Tmp1), (int)Tmp2);
More information about the llvm-commits
mailing list