[Mlir-commits] [mlir] [mlir] Use llvm::max_element (NFC) (PR #143396)
Kazu Hirata
llvmlistbot at llvm.org
Mon Jun 9 08:27:04 PDT 2025
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/143396
None
>From f1c2ebbe811f36fbe341fb7ceff8264d80018d83 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Sun, 8 Jun 2025 22:56:53 -0700
Subject: [PATCH] [mlir] Use llvm::max_element (NFC)
---
mlir/lib/Dialect/ArmSME/Transforms/TileAllocation.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/mlir/lib/Dialect/ArmSME/Transforms/TileAllocation.cpp b/mlir/lib/Dialect/ArmSME/Transforms/TileAllocation.cpp
index 72a05ffe97ac0..e6c9adba62f34 100644
--- a/mlir/lib/Dialect/ArmSME/Transforms/TileAllocation.cpp
+++ b/mlir/lib/Dialect/ArmSME/Transforms/TileAllocation.cpp
@@ -528,8 +528,7 @@ chooseSpillUsingHeuristics(OverlappingRangesIterator overlappingRanges,
a.end() < b.end();
};
LiveRange &latestEndingLiveRange =
- *std::max_element(overlappingRanges.begin(), overlappingRanges.end(),
- isSmallerTileTypeOrEndsEarlier);
+ *llvm::max_element(overlappingRanges, isSmallerTileTypeOrEndsEarlier);
if (!isSmallerTileTypeOrEndsEarlier(latestEndingLiveRange, *newRange))
return &latestEndingLiveRange;
return newRange;
More information about the Mlir-commits
mailing list