[Mlir-commits] [mlir] [MLIR] getBackwardSlice: don't bail on ops that are IsolatedFromAbove (PR #158135)
Ian Wood
llvmlistbot at llvm.org
Fri Sep 19 09:57:35 PDT 2025
================
@@ -150,7 +151,8 @@ static LogicalResult getBackwardSliceImpl(Operation *op,
bool succeeded = true;
- if (!options.omitUsesFromAbove) {
+ if (!options.omitUsesFromAbove &&
+ !op->hasTrait<OpTrait::IsIsolatedFromAbove>()) {
llvm::for_each(op->getRegions(), [&](Region ®ion) {
----------------
IanWood1 wrote:
Note for reviewers: this line change is an NFC since if the op is isolated from above there can't be any uses defined above.
https://github.com/llvm/llvm-project/pull/158135
More information about the Mlir-commits
mailing list