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
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();