mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
AArch64: make FastISel memcpy emission more robust.
We were hitting an assert if FastISel couldn't create the load or store we requested. Currently this happens for large frame-local addresses, though CodeGen could be improved there. rdar://problem/17187463 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210519 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1460,10 +1460,12 @@ bool AArch64FastISel::TryEmitSmallMemCpy(Address Dest, Address Src,
|
||||
bool RV;
|
||||
unsigned ResultReg;
|
||||
RV = EmitLoad(VT, ResultReg, Src);
|
||||
assert(RV == true && "Should be able to handle this load.");
|
||||
if (!RV)
|
||||
return false;
|
||||
|
||||
RV = EmitStore(VT, ResultReg, Dest);
|
||||
assert(RV == true && "Should be able to handle this store.");
|
||||
(void)RV;
|
||||
if (!RV)
|
||||
return false;
|
||||
|
||||
int64_t Size = VT.getSizeInBits() / 8;
|
||||
Len -= Size;
|
||||
|
Reference in New Issue
Block a user