aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2007-10-23 21:30:25 +0000
committerBill Wendling <isanbard@gmail.com>2007-10-23 21:30:25 +0000
commitd9216574ddab03de298afadafda68d770b49545d (patch)
tree866d746377caa7e47051dc2eb47b838948531802 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parentbe1a026a8d1c9aee03f2d5674ff1f20bc914d547 (diff)
downloadexternal_llvm-d9216574ddab03de298afadafda68d770b49545d.zip
external_llvm-d9216574ddab03de298afadafda68d770b49545d.tar.gz
external_llvm-d9216574ddab03de298afadafda68d770b49545d.tar.bz2
Lowering a memcpy to the stack is killing PPC. The ARM and X86 backends already
have their own custom memcpy lowering code. This code needs to be factored out into a target-independent lowering method with hooks to the backend. In the meantime, just call memcpy if we're trying to copy onto a stack. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43262 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 610c898..4468d16 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -4302,6 +4302,10 @@ void SelectionDAGLowering::visitMemIntrinsic(CallInst &I, unsigned Op) {
break;
}
case ISD::MEMCPY: {
+ // FIXME: Disabling memcpy lowering for copying onto the stack.
+ if (Op1.getOpcode() == ISD::FrameIndex)
+ break;
+
if (MeetsMaxMemopRequirement(MemOps, TLI.getMaxStoresPerMemcpy(),
Size->getValue(), Align, TLI)) {
unsigned NumMemOps = MemOps.size();