We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5cb807 commit 81676b5Copy full SHA for 81676b5
mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
@@ -2285,8 +2285,8 @@ LogicalResult IndexOp::verify() {
2285
2286
OpFoldResult IndexOp::fold(FoldAdaptor adaptor) {
2287
auto linalgOp = dyn_cast_or_null<LinalgOp>((*this)->getParentOp());
2288
- // Early exit if linalg.index does not have a proper parent yet
2289
- // at this point. (e.g createOrFold in a genericOp::build)
+ // Bail out if `linalg.index` does not have a proper parent yet at this
+ // point, e.g., when calling `createOrFold` during IR construction in `genericOp::build`.
2290
if (!linalgOp)
2291
return OpFoldResult{};
2292
0 commit comments