)]}'
{
  "commit": "ba55ef32ef9214804b421090767a27f14abd9439",
  "tree": "4d2b2f4a4117a9c4ea0e0535a37285e46b5b0621",
  "parents": [
    "35e068cbd11c3a8264f5fc502ffd2689360029f0"
  ],
  "author": {
    "name": "Babak",
    "email": "babakk@graphcore.ai",
    "time": "Fri Dec 19 16:19:37 2025 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Fri Dec 19 17:19:37 2025 +0100"
  },
  "message": "[mlir][IR] Fix `RewriterBase::replaceUsesWithIf(ValueRange)` in dialect conversion (#172883)\n\n`ConversionPatternRewriter::replaceUsesWithIf` does not support the\n`allUsesReplaced` flag and asserts that it\u0027s not set. However the\n`ValueRange` overload of `RewriterBase::replaceUsesWithIf` always passes\nthis flag when calling the virtual overload of `replaceUsesWithIf`. This\nmeans calls made to `RewriterBase::replaceUsesWithIf` from a\n`ConversionPattern` crash, whether the `allUsesReplaced` flag is set or\nnot.\n\nThis change tweaks `RewriterBase::replaceUsesWithIf` to only pass that\nflag if the callee has set it.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "8bc0fcd4517d80bbb8dc1bccc63bbd20dd893596",
      "old_mode": 33188,
      "old_path": "mlir/lib/IR/PatternMatch.cpp",
      "new_id": "226e4e518d3e056d58d3c2c29ca7ef6f3ce8c7e9",
      "new_mode": 33188,
      "new_path": "mlir/lib/IR/PatternMatch.cpp"
    }
  ]
}
