diff options
Diffstat (limited to 'mlir/lib/Reducer/ReductionNode.cpp')
| -rw-r--r-- | mlir/lib/Reducer/ReductionNode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/Reducer/ReductionNode.cpp b/mlir/lib/Reducer/ReductionNode.cpp index b4596419ed17..d57ee932bfca 100644 --- a/mlir/lib/Reducer/ReductionNode.cpp +++ b/mlir/lib/Reducer/ReductionNode.cpp @@ -74,8 +74,8 @@ ArrayRef<ReductionNode *> ReductionNode::generateNewVariants() { // the above example, we split the range {4, 9} into {4, 6}, {6, 9}, and // create two variants with range {{1, 3}, {4, 6}} and {{1, 3}, {6, 9}}. The // final ranges vector will be {{1, 3}, {4, 6}, {6, 9}}. - auto maxElement = std::max_element( - ranges.begin(), ranges.end(), [](const Range &lhs, const Range &rhs) { + auto maxElement = + llvm::max_element(ranges, [](const Range &lhs, const Range &rhs) { return (lhs.second - lhs.first) > (rhs.second - rhs.first); }); |
