diff options
author | Arnold Schwaighofer <arnold.schwaighofer@gmail.com> | 2007-11-10 10:48:01 +0000 |
---|---|---|
committer | Arnold Schwaighofer <arnold.schwaighofer@gmail.com> | 2007-11-10 10:48:01 +0000 |
commit | 9779494d05792c80aaefd604c52b0839cf091c73 (patch) | |
tree | 34745d52746003cd2a4050bbc800ba47978a47f0 /lib/Target | |
parent | 692b6075914627739ffd7a326f489b041e32fccc (diff) | |
download | external_llvm-9779494d05792c80aaefd604c52b0839cf091c73.zip external_llvm-9779494d05792c80aaefd604c52b0839cf091c73.tar.gz external_llvm-9779494d05792c80aaefd604c52b0839cf091c73.tar.bz2 |
Update tailcall code to include inline attribute operand for memcpy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43978 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 8c40b3c..d51c1d9 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -1643,9 +1643,10 @@ SDOperand X86TargetLowering::LowerX86_TailCallTo(SDOperand Op, SDOperand AlignNode = DAG.getConstant(Align, MVT::i32); SDOperand SizeNode = DAG.getConstant(Size, MVT::i32); - // Copy relative to framepointer. - MemOpChains2.push_back(DAG.getNode(ISD::MEMCPY, MVT::Other, Chain, FIN, - PtrOff, SizeNode, AlignNode)); + SDOperand AlwaysInline = DAG.getConstant(1, MVT::i1); + + MemOpChains2.push_back(DAG.getMemcpy(Chain, FIN, PtrOff, SizeNode, + AlignNode,AlwaysInline)); } else { SDOperand LoadedArg = DAG.getLoad(VA.getValVT(), Chain, PtrOff, NULL,0); // Store relative to framepointer. |