[Mlir-commits] [mlir] [mlir] Fix liveness analysis (PR #88848)
Mehdi Amini
llvmlistbot at llvm.org
Tue Apr 23 13:42:03 PDT 2024
================
@@ -72,6 +72,11 @@ struct BlockInfoBuilder {
defValues.insert(result);
for (Value operand : op->getOperands())
useValues.insert(operand);
+ for (Region ®ion : op->getRegions())
+ for (Block &child : region.getBlocks())
+ for (BlockArgument arg : child.getArguments()) {
+ defValues.insert(arg);
+ }
----------------
joker-eph wrote:
Nit: If you need braces, it should be for the outer loop I believe, not the inner ones.
https://github.com/llvm/llvm-project/pull/88848
More information about the Mlir-commits
mailing list