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 b6cb2c7 commit 629949cCopy full SHA for 629949c
mlir/lib/Dialect/SCF/IR/SCF.cpp
@@ -356,7 +356,7 @@ struct ExecuteRegionForwardingEliminator
356
357
// If it's a block argument, check if it's from within the region
358
if (BlockArgument blockArg = dyn_cast<BlockArgument>(value)) {
359
- return executeRegionOp.getRegion().isAncestor(blockArg.getParentRegion());
+ return executeRegionOp.getRegion() == blockArg.getParentRegion());
360
}
361
362
return false; // Value is from outside the region
0 commit comments