[Mlir-commits] [mlir] [mlir][bufferization]-Refactor findValueInReverseUseDefChain to accept opOperand (PR #121304)
Amir Bishara
llvmlistbot at llvm.org
Mon Dec 30 11:00:26 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();
----------------
amirBish wrote:
You're right, missed it.
https://github.com/llvm/llvm-project/pull/121304
More information about the Mlir-commits
mailing list