)]}'
{
  "commit": "9fa29980f2edf6a9f41e4379a96da0cb91a6f642",
  "tree": "2449875cd087e63a784600c73919abcc9f093d27",
  "parents": [
    "3592c594ae611115987b943019ebbbaf61efce9b"
  ],
  "author": {
    "name": "NatashaKnk",
    "email": "natashaknk@google.com",
    "time": "Fri Aug 04 10:55:31 2023 -0700"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Fri Aug 04 10:55:31 2023 -0700"
  },
  "message": "Add canonicalizer that reorders unary elementwise ops and shape manipulation ops. (#14494)\n\nThe pass identifies shape manipulation operations (`reshape`,\r\n`transpose`, `broadcast`) that feed into unary elementwise operations\r\nand swaps their order. Since elementwise ops do not manipulate the input\r\nshape (and there is no interaction between the elements), the reordering\r\ndoesn\u0027t affect the result.\r\nThis enables a future PR where some consecutive shape manipulation\r\noperations should be collapsed together into a single operation.\r\n`Broadcast_in_dim` is not included in this PR as the same thing is done\r\nfor it as part of an existing `StablehloToStablehlo` pass.\r\nIn the future, we might want to consider merging/more clearly defining\r\nthe difference between `Canonicalizations.cpp` and\r\n`StablehloToStablehlo.cpp` files, as at the moment their function is\r\nalmost indistinguishable in some cases.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "dce79771823f86a66cda7a853f2807ccceb1b74c",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/InputConversion/StableHLO/Preprocessing/Canonicalization.cpp",
      "new_id": "744a7eeca8333c1ebd4b8eca2f14b9d4e2b78f2b",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/InputConversion/StableHLO/Preprocessing/Canonicalization.cpp"
    },
    {
      "type": "modify",
      "old_id": "f0dc19a023843b18ea5c30d173e661a56d5a94dc",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/InputConversion/StableHLO/Preprocessing/test/canonicalization.mlir",
      "new_id": "bda6c3c9d0f5d66414a5f5daec39f51082d01c6e",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/InputConversion/StableHLO/Preprocessing/test/canonicalization.mlir"
    }
  ]
}
