Skip to content

Commit fc505d0

Browse files
committed
[MLIR] Apply clang-tidy fixes for performance-unnecessary-value-param in ScalableValueBoundsConstraintSet.cpp (NFC)
1 parent 46a3b4d commit fc505d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mlir/include/mlir/Dialect/Vector/IR/ScalableValueBoundsConstraintSet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ struct ScalableValueBoundsConstraintSet
7272
computeScalableBound(Value value, std::optional<int64_t> dim,
7373
unsigned vscaleMin, unsigned vscaleMax,
7474
presburger::BoundType boundType, bool closedUB = true,
75-
StopConditionFn stopCondition = nullptr);
75+
const StopConditionFn &stopCondition = nullptr);
7676

7777
/// Get the value of vscale. Returns `nullptr` vscale as not been encountered.
7878
Value getVscaleValue() const { return vscale; }

mlir/lib/Dialect/Vector/IR/ScalableValueBoundsConstraintSet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ FailureOr<ConstantOrScalableBound>
4343
ScalableValueBoundsConstraintSet::computeScalableBound(
4444
Value value, std::optional<int64_t> dim, unsigned vscaleMin,
4545
unsigned vscaleMax, presburger::BoundType boundType, bool closedUB,
46-
StopConditionFn stopCondition) {
46+
const StopConditionFn &stopCondition) {
4747
using namespace presburger;
4848
assert(vscaleMin <= vscaleMax);
4949

0 commit comments

Comments
 (0)