[llvm-commits] [llvm] r48269 - /llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
Dale Johannesen
dalej at apple.com
Tue Mar 11 17:49:20 PDT 2008
Author: johannes
Date: Tue Mar 11 19:49:20 2008
New Revision: 48269
URL: http://llvm.org/viewvc/llvm-project?rev=48269&view=rev
Log:
One more bit of Altivec parameter passing.
Modified:
llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
Modified: llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp?rev=48269&r1=48268&r2=48269&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp Tue Mar 11 19:49:20 2008
@@ -1535,9 +1535,11 @@
}
++VR_idx;
} else {
- // This should be simple, but requires getting 16-byte aligned stack
- // values.
- assert(0 && "Loading VR argument not implemented yet!");
+ // Stack offset is aligned.
+ while (ArgOffset % 16 !=0) {
+ ArgOffset += PtrByteSize;
+ }
+ ArgOffset += 16;
needsLoad = true;
}
break;
More information about the llvm-commits
mailing list