diff options
author | Amara Emerson <amara@apple.com> | 2022-07-27 11:11:46 -0700 |
---|---|---|
committer | Amara Emerson <amara@apple.com> | 2022-07-27 11:42:14 -0700 |
commit | 65246d3eb4c64b338f8011dab5ee9ee2cc62c5c3 (patch) | |
tree | feb222f6e38128e2655f5c0db7b96cab1881927d /llvm/lib/CodeGen/TargetLoweringBase.cpp | |
parent | 16e0620d6d8397b0dd0ed773c7719320bc35201e (diff) | |
download | llvm-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.cpp | 2 |
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; |