[Mlir-commits] [mlir] [mlir] Fix liveness analysis (PR #88848)

Maksim Levental llvmlistbot at llvm.org
Tue Apr 23 14:28:35 PDT 2024


================
@@ -72,6 +72,11 @@ struct BlockInfoBuilder {
         defValues.insert(result);
       for (Value operand : op->getOperands())
         useValues.insert(operand);
+      for (Region &region : op->getRegions())
+        for (Block &child : region.getBlocks())
+          for (BlockArgument arg : child.getArguments()) {
+            defValues.insert(arg);
+          }
----------------
makslevental wrote:

Personally I eschew braces anywhere possible since my parents couldn't afford orthodontics when I was a kid...

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


More information about the Mlir-commits mailing list