)]}'
{
  "commit": "907b2cdbafb3f69666695b4e66b737932b6eb71b",
  "tree": "56f3fa95424dc279baec3f357578094bb35df4c0",
  "parents": [
    "0d0b9891ea62d78475967a1cf2df833bae942cc6"
  ],
  "author": {
    "name": "Stanley Winata",
    "email": "68087699+raikonenfnu@users.noreply.github.com",
    "time": "Sun Jul 21 13:25:02 2024 -0700"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Sun Jul 21 13:25:02 2024 -0700"
  },
  "message": "[Codegen] Ensure hoisted extraction replaced by induction var. (#17975)\n\nThis commit teaches the compiler to replace hoisted extraction of IV by\r\nthe newly generated IV with the correct shapes. Previously we would\r\nhoist the extraction and replace the IV uses by the hoisted extraction,\r\nhowever this may not always be correct since the IV\u0027s value may be\r\nupdated in the loop.\r\n\r\nThe main motivation of this PR is to fix numerical issue caused by such\r\ncase that exists in the attention-cpp pipeline. Although this happens at\r\nthe vector level as opposed to the test cases we have for at tensor\r\nlevel, we can re-use said test. Specific example for this case will be\r\nleft in the comment section of this PR.\r\n\r\n---------\r\n\r\nSigned-off-by: Stanley Winata \u003cstanley.winata@amd.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3ee4b53a25931e9d12cd7bab9ac7d5ae6bf5c004",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/Codegen/Common/OptimizeTensorInsertExtractSlices.cpp",
      "new_id": "2b608be094e82433ead04bfe26471e5310b58144",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/Codegen/Common/OptimizeTensorInsertExtractSlices.cpp"
    },
    {
      "type": "modify",
      "old_id": "8a35b4bffa611e94ec5cac28e09823be77956465",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/Codegen/Common/test/optimize_tensor_insert_extract_slices.mlir",
      "new_id": "2cf5726e84baff64ba37362884f11ad089bf5f51",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/Codegen/Common/test/optimize_tensor_insert_extract_slices.mlir"
    }
  ]
}
