)]}'
{
  "commit": "def4e491be636d5fda1f1d36bd17fbf3f8a37ea7",
  "tree": "68299f889ca5e8557790fe8f1898ca06eebefda5",
  "parents": [
    "28b1d8886b3bd5645f8bfebb7713358a1551d435"
  ],
  "author": {
    "name": "George Adams",
    "email": "georgeadams1995@gmail.com",
    "time": "Mon Mar 09 08:56:37 2026 +0000"
  },
  "committer": {
    "name": "Gopher Robot",
    "email": "gobot@golang.org",
    "time": "Tue Mar 10 04:52:13 2026 -0700"
  },
  "message": "cmd/compile: add identity and absorption rules for wasm\n\nAdd post-lowering identity and absorption rules for I64And, I64Or,\nI64Xor, and I64Mul with constant operands:\n\n  (I64And x (I64Const [-1])) \u003d\u003e x\n  (I64And x (I64Const [0])) \u003d\u003e (I64Const [0])\n  (I64Or  x (I64Const [0])) \u003d\u003e x\n  (I64Or  x (I64Const [-1])) \u003d\u003e (I64Const [-1])\n  (I64Xor x (I64Const [0])) \u003d\u003e x\n  (I64Mul x (I64Const [0])) \u003d\u003e (I64Const [0])\n  (I64Mul x (I64Const [1])) \u003d\u003e x\n\nThe generic SSA rules handle these patterns before lowering, but\nthese rules catch cases where wasm-specific lowering or other\npost-lowering optimization passes produce new nodes with identity\nor absorbing constant operands.\n\nFor example, the complement rule lowers Com64(x) to\n(I64Xor x (I64Const [-1])), and if x is later determined to be\nall-ones, the I64And absorption rule can fold the result to zero.\n\nCq-Include-Trybots: luci.golang.try:gotip-wasip1-wasm_wasmtime,gotip-wasip1-wasm_wazero\nChange-Id: Ie9a40e075662d4828a70e30b258d92ee171d0bc2\nReviewed-on: https://go-review.googlesource.com/c/go/+/752861\nLUCI-TryBot-Result: Go LUCI \u003cgolang-scoped@luci-project-accounts.iam.gserviceaccount.com\u003e\nAuto-Submit: Keith Randall \u003ckhr@golang.org\u003e\nReviewed-by: Keith Randall \u003ckhr@google.com\u003e\nReviewed-by: Keith Randall \u003ckhr@golang.org\u003e\nReviewed-by: David Chase \u003cdrchase@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "8490fb39b8c1fe4a7fb27bd008e881ae8dce3b35",
      "old_mode": 33188,
      "old_path": "src/cmd/compile/internal/ssa/_gen/Wasm.rules",
      "new_id": "9b582c8c00d5f1ef8a64d0c6952339d2111d35c7",
      "new_mode": 33188,
      "new_path": "src/cmd/compile/internal/ssa/_gen/Wasm.rules"
    },
    {
      "type": "modify",
      "old_id": "68a40f0c7f6ced1b11477bed8615df52c0a6bb29",
      "old_mode": 33188,
      "old_path": "src/cmd/compile/internal/ssa/rewriteWasm.go",
      "new_id": "c0ccd9611d8aaae976a5ef4eeca92938d09f50b5",
      "new_mode": 33188,
      "new_path": "src/cmd/compile/internal/ssa/rewriteWasm.go"
    }
  ]
}
