mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Make ARM an X86 memcpy expansion more similar to each other.
Now both subtarget define getMaxInlineSizeThreshold and the expansion uses it. This should not change generated code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43552 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1315,7 +1315,8 @@ SDOperand ARMTargetLowering::LowerMEMCPY(SDOperand Op, SelectionDAG &DAG,
|
||||
// this once Thumb ldmia / stmia support is added.
|
||||
unsigned Size = I->getValue();
|
||||
if (AlwaysInline ||
|
||||
(!ST->isThumb() && Size < 64 && (Align & 3) == 0))
|
||||
(!ST->isThumb() && Size <= Subtarget->getMaxInlineSizeThreshold() &&
|
||||
(Align & 3) == 0))
|
||||
return LowerMEMCPYInline(ChainOp, DestOp, SourceOp, Size, Align, DAG);
|
||||
return LowerMEMCPYCall(ChainOp, DestOp, SourceOp, CountOp, DAG);
|
||||
}
|
||||
|
Reference in New Issue
Block a user