diff options
author | David Meyer <pdox@google.com> | 2011-09-26 06:13:20 +0000 |
---|---|---|
committer | David Meyer <pdox@google.com> | 2011-09-26 06:13:20 +0000 |
commit | 8f418b11d23c05850c37d2f2c1933fefcae25719 (patch) | |
tree | 4e767698981264ad0ce6a11a8090eb3d098c9d7a /lib | |
parent | 100d86ada512e495104580b71e28599308fb7365 (diff) | |
download | llvm-8f418b11d23c05850c37d2f2c1933fefcae25719.tar.gz llvm-8f418b11d23c05850c37d2f2c1933fefcae25719.tar.bz2 llvm-8f418b11d23c05850c37d2f2c1933fefcae25719.tar.xz |
PR11004: Inline memcpy to avoid generating nested call sequence. Un-XFAIL 2011-06-09-TailCallByVal and 2010-11-04-BigByval
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140516 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/ARM/ARMISelLowering.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp index 697af66ec9..9f313859d5 100644 --- a/lib/Target/ARM/ARMISelLowering.cpp +++ b/lib/Target/ARM/ARMISelLowering.cpp @@ -1340,10 +1340,12 @@ ARMTargetLowering::LowerCall(SDValue Chain, SDValue Callee, SDValue Src = DAG.getNode(ISD::ADD, dl, getPointerTy(), Arg, SrcOffset); SDValue SizeNode = DAG.getConstant(Flags.getByValSize() - 4*offset, MVT::i32); + // TODO: Disable AlwaysInline when it becomes possible + // to emit a nested call sequence. MemOpChains.push_back(DAG.getMemcpy(Chain, dl, Dst, Src, SizeNode, Flags.getByValAlign(), /*isVolatile=*/false, - /*AlwaysInline=*/false, + /*AlwaysInline=*/true, MachinePointerInfo(0), MachinePointerInfo(0))); |