diff --git a/mlir/lib/Dialect/Linalg/Analysis/DependenceAnalysis.cpp b/mlir/lib/Dialect/Linalg/Analysis/DependenceAnalysis.cpp --- a/mlir/lib/Dialect/Linalg/Analysis/DependenceAnalysis.cpp +++ b/mlir/lib/Dialect/Linalg/Analysis/DependenceAnalysis.cpp @@ -43,6 +43,9 @@ if (!defOp) return v; + if (isa(defOp)) + return v; + if (auto memEffect = dyn_cast(defOp)) { // Collect all memory effects on `v`. SmallVector effects;