[Mlir-commits] [mlir] [mlir][bufferization]-Refactor findValueInReverseUseDefChain to accept opOperand (PR #121304)

Matthias Springer llvmlistbot at llvm.org
Mon Dec 30 07:57:23 PST 2024


================
@@ -196,7 +196,12 @@ void OneShotAnalysisState::gatherUndefinedTensorUses(Operation *op) {
 
       // If there is no preceding definition, the tensor contents are
       // undefined.
-      if (findDefinitionsCached(opResult).empty())
+      if (opResult.getUses().empty())
+        return WalkResult::skip();
----------------
matthias-springer wrote:

I think this should be `continue;`

https://github.com/llvm/llvm-project/pull/121304


More information about the Mlir-commits mailing list