Use -1ULL instead of uint64_t(-1), at Anton's suggestion.

llvm-svn: 57021
This commit is contained in:
Dan Gohman 2008-10-03 17:56:45 +00:00
parent 37165b13e5
commit b62cd7ea98
1 changed files with 2 additions and 2 deletions

View File

@ -2927,7 +2927,7 @@ static SDValue getMemcpyLoadsAndStores(SelectionDAG &DAG,
// Expand memcpy to a series of load and store ops if the size operand falls // Expand memcpy to a series of load and store ops if the size operand falls
// below a certain threshold. // below a certain threshold.
std::vector<MVT> MemOps; std::vector<MVT> MemOps;
uint64_t Limit = uint64_t(-1); uint64_t Limit = -1ULL;
if (!AlwaysInline) if (!AlwaysInline)
Limit = TLI.getMaxStoresPerMemcpy(); Limit = TLI.getMaxStoresPerMemcpy();
unsigned DstAlign = Align; // Destination alignment can change. unsigned DstAlign = Align; // Destination alignment can change.
@ -2985,7 +2985,7 @@ static SDValue getMemmoveLoadsAndStores(SelectionDAG &DAG,
// Expand memmove to a series of load and store ops if the size operand falls // Expand memmove to a series of load and store ops if the size operand falls
// below a certain threshold. // below a certain threshold.
std::vector<MVT> MemOps; std::vector<MVT> MemOps;
uint64_t Limit = uint64_t(-1); uint64_t Limit = -1ULL;
if (!AlwaysInline) if (!AlwaysInline)
Limit = TLI.getMaxStoresPerMemmove(); Limit = TLI.getMaxStoresPerMemmove();
unsigned DstAlign = Align; // Destination alignment can change. unsigned DstAlign = Align; // Destination alignment can change.