mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 06:30:16 +00:00
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
This commit is contained in:
parent
0b2d7aaf5c
commit
de09040946
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user