Skip to content

Commit fc798df

Browse files
author
Fotis Kounelis
committed
replace auto with optional int, to address comment
1 parent 1831cf2 commit fc798df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Dialect/SCF/TransformOps/SCFTransformOps.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ loopScheduling(scf::ForOp forOp,
261261
return 1;
262262
};
263263

264-
auto ubConstant = getConstantIntValue(forOp.getUpperBound());
265-
auto lbConstant = getConstantIntValue(forOp.getLowerBound());
264+
std::optional<int64_t> ubConstant = getConstantIntValue(forOp.getUpperBound());
265+
std::optional<int64_t> lbConstant = getConstantIntValue(forOp.getLowerBound());
266266
DenseMap<Operation *, unsigned> opCycles;
267267
std::map<unsigned, std::vector<Operation *>> wrappedSchedule;
268268
for (Operation &op : forOp.getBody()->getOperations()) {

0 commit comments

Comments
 (0)