mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
the 'limit' argument to FindOptimalMemOpLowering is unsigned, not uint64_t.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105226 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -3320,9 +3320,8 @@ static SDValue getMemcpyLoadsAndStores(SelectionDAG &DAG, DebugLoc dl,
|
|||||||
std::string Str;
|
std::string Str;
|
||||||
bool CopyFromStr = isMemSrcFromString(Src, Str);
|
bool CopyFromStr = isMemSrcFromString(Src, Str);
|
||||||
bool isZeroStr = CopyFromStr && Str.empty();
|
bool isZeroStr = CopyFromStr && Str.empty();
|
||||||
uint64_t Limit = -1ULL;
|
unsigned Limit = AlwaysInline ? ~0U : TLI.getMaxStoresPerMemcpy();
|
||||||
if (!AlwaysInline)
|
|
||||||
Limit = TLI.getMaxStoresPerMemcpy();
|
|
||||||
if (!FindOptimalMemOpLowering(MemOps, Limit, Size,
|
if (!FindOptimalMemOpLowering(MemOps, Limit, Size,
|
||||||
(DstAlignCanChange ? 0 : Align),
|
(DstAlignCanChange ? 0 : Align),
|
||||||
(isZeroStr ? 0 : SrcAlign),
|
(isZeroStr ? 0 : SrcAlign),
|
||||||
@@ -3400,9 +3399,6 @@ static SDValue getMemmoveLoadsAndStores(SelectionDAG &DAG, DebugLoc dl,
|
|||||||
// below a certain threshold.
|
// below a certain threshold.
|
||||||
const TargetLowering &TLI = DAG.getTargetLoweringInfo();
|
const TargetLowering &TLI = DAG.getTargetLoweringInfo();
|
||||||
std::vector<EVT> MemOps;
|
std::vector<EVT> MemOps;
|
||||||
uint64_t Limit = -1ULL;
|
|
||||||
if (!AlwaysInline)
|
|
||||||
Limit = TLI.getMaxStoresPerMemmove();
|
|
||||||
bool DstAlignCanChange = false;
|
bool DstAlignCanChange = false;
|
||||||
MachineFrameInfo *MFI = DAG.getMachineFunction().getFrameInfo();
|
MachineFrameInfo *MFI = DAG.getMachineFunction().getFrameInfo();
|
||||||
FrameIndexSDNode *FI = dyn_cast<FrameIndexSDNode>(Dst);
|
FrameIndexSDNode *FI = dyn_cast<FrameIndexSDNode>(Dst);
|
||||||
@@ -3411,6 +3407,7 @@ static SDValue getMemmoveLoadsAndStores(SelectionDAG &DAG, DebugLoc dl,
|
|||||||
unsigned SrcAlign = DAG.InferPtrAlignment(Src);
|
unsigned SrcAlign = DAG.InferPtrAlignment(Src);
|
||||||
if (Align > SrcAlign)
|
if (Align > SrcAlign)
|
||||||
SrcAlign = Align;
|
SrcAlign = Align;
|
||||||
|
unsigned Limit = AlwaysInline ? ~0U : TLI.getMaxStoresPerMemmove();
|
||||||
|
|
||||||
if (!FindOptimalMemOpLowering(MemOps, Limit, Size,
|
if (!FindOptimalMemOpLowering(MemOps, Limit, Size,
|
||||||
(DstAlignCanChange ? 0 : Align),
|
(DstAlignCanChange ? 0 : Align),
|
||||||
|
Reference in New Issue
Block a user