diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2007-10-31 11:52:06 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2007-10-31 11:52:06 +0000 |
commit | fc05f402ea22e8a9ae465d209b65be7e857a89ff (patch) | |
tree | 4ba92fb0a672dde72a2d2a41323c31c4177f7e99 /lib/Target/X86/X86ISelLowering.cpp | |
parent | 7169a2f9e87d3cb13666071b9af022fdb82218e4 (diff) |
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
Diffstat (limited to 'lib/Target/X86/X86ISelLowering.cpp')
-rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 17c7534377..f1bf150e1f 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -4332,7 +4332,7 @@ SDOperand X86TargetLowering::LowerMEMSET(SDOperand Op, SelectionDAG &DAG) { // The libc version is likely to be faster for these cases. It can use the // address value and run time information about the CPU. if ((Align & 3) != 0 || - (I && I->getValue() > Subtarget->getMinRepStrSizeThreshold())) { + (I && I->getValue() > Subtarget->getMaxInlineSizeThreshold())) { MVT::ValueType IntPtr = getPointerTy(); const Type *IntPtrTy = getTargetData()->getIntPtrType(); TargetLowering::ArgListTy Args; @@ -4510,7 +4510,7 @@ SDOperand X86TargetLowering::LowerMEMCPY(SDOperand Op, SelectionDAG &DAG) { return LowerMEMCPYCall(ChainOp, DestOp, SourceOp, CountOp, DAG); // If size is more than the threshold, call memcpy. - if (Size > Subtarget->getMinRepStrSizeThreshold()) + if (Size > Subtarget->getMaxInlineSizeThreshold()) return LowerMEMCPYCall(ChainOp, DestOp, SourceOp, CountOp, DAG); return LowerMEMCPYInline(ChainOp, DestOp, SourceOp, Size, Align, DAG); |