Skip to content

Commit 629949c

Browse files
ddubov100joker-eph
andauthored
Update mlir/lib/Dialect/SCF/IR/SCF.cpp
Co-authored-by: Mehdi Amini <[email protected]>
1 parent b6cb2c7 commit 629949c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/SCF/IR/SCF.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ struct ExecuteRegionForwardingEliminator
356356

357357
// If it's a block argument, check if it's from within the region
358358
if (BlockArgument blockArg = dyn_cast<BlockArgument>(value)) {
359-
return executeRegionOp.getRegion().isAncestor(blockArg.getParentRegion());
359+
return executeRegionOp.getRegion() == blockArg.getParentRegion());
360360
}
361361

362362
return false; // Value is from outside the region

0 commit comments

Comments
 (0)