File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -468,7 +468,7 @@ bool wouldOpBeTriviallyDead(Operation *op);
468
468
// / Can only infer if loop is dead if it has constant loop bounds/steps.
469
469
// / Otherwise we assume that it's dead to be conservative.
470
470
// /
471
- std::optional<bool > isZeroTrip (mlir::LoopLikeOpInterface loop);
471
+ std::optional<bool > isZeroTrip (mlir::LoopLikeOpInterface & loop);
472
472
473
473
// / Returns true if the given operation is allowed to be moved under the
474
474
// / memory effects interface.
Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ bool mlir::wouldOpBeTriviallyDead(Operation *op) {
319
319
return wouldOpBeTriviallyDeadImpl (op);
320
320
}
321
321
322
- std::optional<bool > mlir::isZeroTrip (mlir::LoopLikeOpInterface loop) {
322
+ std::optional<bool > mlir::isZeroTrip (mlir::LoopLikeOpInterface & loop) {
323
323
auto lbs = loop.getLoopLowerBounds ();
324
324
auto ubs = loop.getLoopUpperBounds ();
325
325
auto steps = loop.getLoopSteps ();
You can’t perform that action at this time.
0 commit comments