)]}'
{
  "commit": "0824de6920f7f8854a05c34a5a752d83bfb1fa23",
  "tree": "2ce4e42bfe538afb9ea3f1f7b7a70ad4978ebf51",
  "parents": [
    "032ef3bac023c9288dd222c10f4dc7f36a619aef"
  ],
  "author": {
    "name": "Thomas Lively",
    "email": "tlively@google.com",
    "time": "Tue Nov 24 18:37:38 2026"
  },
  "committer": {
    "name": "Thomas Lively",
    "email": "tlively@google.com",
    "time": "Tue Dec 01 00:07:05 2026"
  },
  "message": "[StackIR] Check structural dominance before removing multivalue tees\n\nIn `StackIROptimizer::local2Stack()`, the multivalue `local.tee` + `tuple.extract` optimization removed a tuple `local.tee` and its adjacent `tuple.extract`/`local.get` sequence whenever `localGraph.getSetInfluences(tee).size() \u003d\u003d tee-\u003etype.size() - 1`. Unlike the single-value set/get optimization path, it did not check whether removing the `local.tee` would leave a non-defaultable local structurally uninitialized at a remaining `local.get` in the function.\n\nThis broke WebAssembly validation in two scenarios: when a tuple local containing a non-nullable reference was overwritten inside inner `if`/`else` arms before a subsequent `local.get`, and when a remaining `local.get` was in CFG-unreachable code (for example after a `try_table` whose body had no reachable throwing instructions) that `LocalGraph` excluded from `setInfluences` while `StackIROptimizer::dce()` retained it past the control-flow barrier.\n\nGeneralize `StackIROptimizer::canRemoveSetGetPair()` into `StackIROptimizer::canRemoveSet()`, which checks `localType.isDefaultable()` instead of single-type non-nullability and accepts an inclusive range of removed instructions whose gets are being eliminated, and call it from the multivalue `local.tee` optimization path as well.\n\nFixes #9427.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "bbcb561d9b212ec59c5fffbed06d042a5b359cb6",
      "old_mode": 33188,
      "old_path": "src/wasm-stack.h",
      "new_id": "51673b1c1076b85043b445418b33588b380b019f",
      "new_mode": 33188,
      "new_path": "src/wasm-stack.h"
    },
    {
      "type": "modify",
      "old_id": "2dfda1d9817965ed0209a7fae66b5fa680de0d18",
      "old_mode": 33188,
      "old_path": "src/wasm/wasm-stack-opts.cpp",
      "new_id": "a26f7cadaca0791293d44a3907d75e755771dcd4",
      "new_mode": 33188,
      "new_path": "src/wasm/wasm-stack-opts.cpp"
    },
    {
      "type": "modify",
      "old_id": "0eeb4dee870f4860cfa008838fab8219587d916d",
      "old_mode": 33188,
      "old_path": "test/lit/passes/optimize-stack-ir-multivalue.wast",
      "new_id": "18d94c890e274fe0fb672cdf4acf2dbef161310f",
      "new_mode": 33188,
      "new_path": "test/lit/passes/optimize-stack-ir-multivalue.wast"
    },
    {
      "type": "modify",
      "old_id": "508fe574f6ca3119824be84cfef563251d6d5675",
      "old_mode": 33188,
      "old_path": "test/lit/passes/stack-ir-non-nullable.wast",
      "new_id": "188075b887034720ff68b3a9c4609c7e2c316169",
      "new_mode": 33188,
      "new_path": "test/lit/passes/stack-ir-non-nullable.wast"
    }
  ]
}
