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 08a424a commit 1f483c9Copy full SHA for 1f483c9
mlir/lib/Analysis/Liveness.cpp
@@ -369,7 +369,7 @@ Operation *LivenessBlockInfo::getStartOperation(Value value) const {
369
Operation *definingOp = value.getDefiningOp();
370
// The given value is either live-in or is defined
371
// in the scope of this block.
372
- if (isLiveIn(value) || !definingOp)
+ if (!definingOp || definingOp->getBlock() != block)
373
return &block->front();
374
return definingOp;
375
}
0 commit comments