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 33061e4 commit b6cb2c7Copy full SHA for b6cb2c7
mlir/lib/Dialect/SCF/IR/SCF.cpp
@@ -351,9 +351,8 @@ struct ExecuteRegionForwardingEliminator
351
bool isValueFromInsideRegion(Value value,
352
ExecuteRegionOp executeRegionOp) const {
353
// Check if the value is defined within the execute_region
354
- if (Operation *defOp = value.getDefiningOp()) {
355
- return executeRegionOp.getRegion().isAncestor(defOp->getParentRegion());
356
- }
+ if (Operation *defOp = value.getDefiningOp())
+ return executeRegionOp.getRegion() = defOp->getParentRegion();
357
358
// If it's a block argument, check if it's from within the region
359
if (BlockArgument blockArg = dyn_cast<BlockArgument>(value)) {
0 commit comments