PR11004: Inline memcpy to avoid generating nested call sequence. Un-XFAIL 2011-06...
authorDavid Meyer <pdox@google.com>
Mon, 26 Sep 2011 06:13:20 +0000 (06:13 +0000)
committerDavid Meyer <pdox@google.com>
Mon, 26 Sep 2011 06:13:20 +0000 (06:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140516 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMISelLowering.cpp
test/CodeGen/ARM/2011-06-09-TailCallByVal.ll
test/CodeGen/Generic/2010-11-04-BigByval.ll

index 697af66ec9c9aaeb267ed36ef9b5e730e368c4e3..9f313859d5677e05974cb17ffa5e3c373f94343b 100644 (file)
@@ -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)));
 
index befda6f605599f595b843fddf0d5c14a85357c43..7f0f795486f8f0ebe2aa4a74f20dd38c5274ca1b 100644 (file)
@@ -1,8 +1,4 @@
-; DISABLED: llc < %s -relocation-model=pic -mcpu=cortex-a8 -arm-tail-calls=1 | FileCheck %s
-; RUN: false
-
-; byval is currently unsupported.
-; XFAIL: *
+; RUN: llc < %s -relocation-model=pic -mcpu=cortex-a8 -arm-tail-calls=1 | FileCheck %s
 
 target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:32:64-v128:32:128-a0:0:32-n32"
 target triple = "thumbv7-apple-darwin10"
index ecb354ed175e74cfab42578e36bb09cf7cc9ac53..df2ca4c18a0590847b810d5997c8c692d02f1757 100644 (file)
@@ -1,6 +1,5 @@
 ; RUN: llc < %s
 ; PR7170
-; XFAIL: arm
 
 %big = type [131072 x i8]