aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringBase.cpp
diff options
context:
space:
mode:
authorAmara Emerson <amara@apple.com>2022-07-27 11:11:46 -0700
committerAmara Emerson <amara@apple.com>2022-07-27 11:42:14 -0700
commit65246d3eb4c64b338f8011dab5ee9ee2cc62c5c3 (patch)
treefeb222f6e38128e2655f5c0db7b96cab1881927d /llvm/lib/CodeGen/TargetLoweringBase.cpp
parent16e0620d6d8397b0dd0ed773c7719320bc35201e (diff)
downloadllvm-65246d3eb4c64b338f8011dab5ee9ee2cc62c5c3.zip
llvm-65246d3eb4c64b338f8011dab5ee9ee2cc62c5c3.tar.gz
llvm-65246d3eb4c64b338f8011dab5ee9ee2cc62c5c3.tar.bz2
Use hasNItemsOrLess() in MRI::hasAtMostUserInstrs().
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringBase.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp
index 517e835..f7c1000 100644
--- a/llvm/lib/CodeGen/TargetLoweringBase.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp
@@ -2325,7 +2325,7 @@ bool TargetLoweringBase::shouldLocalize(const MachineInstr &MI,
auto maxUses = [](unsigned RematCost) {
// A cost of 1 means remats are basically free.
if (RematCost == 1)
- return UINT_MAX;
+ return std::numeric_limits<unsigned>::max();
if (RematCost == 2)
return 2U;