summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorArnold Schwaighofer <arnold.schwaighofer@gmail.com>2008-09-11 20:28:43 +0000
committerArnold Schwaighofer <arnold.schwaighofer@gmail.com>2008-09-11 20:28:43 +0000
commitdd45bc25acd6dbe4e1067dc8e0ace81995f10f91 (patch)
tree1d49cbed6dda59cfb68a60ba3e3ef7e161be9479 /llvm/lib
parent5456a372800d1c2d9f6a0b438b255cb303652bf5 (diff)
downloadbcm5719-llvm-dd45bc25acd6dbe4e1067dc8e0ace81995f10f91.tar.gz
bcm5719-llvm-dd45bc25acd6dbe4e1067dc8e0ace81995f10f91.zip
When tailcallopt is enabled all fastcc calls must have an aligned argument stack size. Add a test case.
llvm-svn: 56119
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index ea9201ca497..010d813a41c 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -1488,7 +1488,7 @@ SDValue X86TargetLowering::LowerCALL(SDValue Op, SelectionDAG &DAG) {
// Get a count of how many bytes are to be pushed on the stack.
unsigned NumBytes = CCInfo.getNextStackOffset();
- if (IsTailCall)
+ if (PerformTailCallOpt && CC == CallingConv::Fast)
NumBytes = GetAlignedArgumentStackSize(NumBytes, DAG);
int FPDiff = 0;
OpenPOWER on IntegriCloud