diff options
author | Chris Lattner <sabre@nondot.org> | 2005-12-19 01:15:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-12-19 01:15:13 +0000 |
commit | 6554beffe46033f654400d13c0ed6f7b602d8bf1 (patch) | |
tree | b9b7f3a55c982a8fc54e5071d49025f588fb4207 | |
parent | 97561fc2eb1cdccf482ea0f55b86f86b1def22e3 (diff) | |
download | external_llvm-6554beffe46033f654400d13c0ed6f7b602d8bf1.zip external_llvm-6554beffe46033f654400d13c0ed6f7b602d8bf1.tar.gz external_llvm-6554beffe46033f654400d13c0ed6f7b602d8bf1.tar.bz2 |
Keep stack frames 8-byte aligned. This fixes olden/voronoi
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24849 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/Sparc/SparcISelDAGToDAG.cpp | 3 | ||||
-rw-r--r-- | lib/Target/SparcV8/SparcV8ISelDAGToDAG.cpp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/Sparc/SparcISelDAGToDAG.cpp b/lib/Target/Sparc/SparcISelDAGToDAG.cpp index 336cbb7..2b4cf73 100644 --- a/lib/Target/Sparc/SparcISelDAGToDAG.cpp +++ b/lib/Target/Sparc/SparcISelDAGToDAG.cpp @@ -360,6 +360,9 @@ SparcV8TargetLowering::LowerCallTo(SDOperand Chain, const Type *RetTy, else ArgsSize = 0; + // Keep stack frames 8-byte aligned. + ArgsSize = (ArgsSize+7) & ~7; + Chain = DAG.getNode(ISD::CALLSEQ_START, MVT::Other, Chain, DAG.getConstant(ArgsSize, getPointerTy())); diff --git a/lib/Target/SparcV8/SparcV8ISelDAGToDAG.cpp b/lib/Target/SparcV8/SparcV8ISelDAGToDAG.cpp index 336cbb7..2b4cf73 100644 --- a/lib/Target/SparcV8/SparcV8ISelDAGToDAG.cpp +++ b/lib/Target/SparcV8/SparcV8ISelDAGToDAG.cpp @@ -360,6 +360,9 @@ SparcV8TargetLowering::LowerCallTo(SDOperand Chain, const Type *RetTy, else ArgsSize = 0; + // Keep stack frames 8-byte aligned. + ArgsSize = (ArgsSize+7) & ~7; + Chain = DAG.getNode(ISD::CALLSEQ_START, MVT::Other, Chain, DAG.getConstant(ArgsSize, getPointerTy())); |