)]}'
{
  "commit": "4d341923e93d6d55b4cdc36db7a8e52f03973c19",
  "tree": "ba451d4f850e5613bbd8a7ba46450624cbbd90bb",
  "parents": [
    "209757c5407dee80404800eff67e9dffb3430505"
  ],
  "author": {
    "name": "Kael Andrew Alonzo Franco",
    "email": "kaelfandrew@gmail.com",
    "time": "Tue Jun 23 14:34:29 2026 -0400"
  },
  "committer": {
    "name": "Andrew Pinski",
    "email": "andrew.pinski@oss.qualcomm.com",
    "time": "Sun Jun 28 23:15:05 2026 -0700"
  },
  "message": "match: X % Y \u003c Y -\u003e Y \u003e\u003d 0 and X % Y \u003e\u003d Y -\u003e Y \u003c 0 [PR125737]\n\nWe had a pattern for `X % Y \u003c Y` when X and Y where non-negative but\nthis can be generalized for all values. And also we can handle `\u003e\u003d` too.\n\nBootstrapped and tested on x86_64-pc-linux-gnu\n\n\tPR tree-optimization/125737\n\ngcc:\n\t* match.pd: Optimize X % Y \u003c Y -\u003e Y \u003e\u003d 0 and X % Y \u003e\u003d Y -\u003e Y \u003c 0\n\ngcc/testsuite:\n\t* gcc.dg/pr125737.c: Move test to pr125737-1.c.\n\t* gcc.dg/pr125737-1.c: Add test for (a % b) \u003e\u003d b when a and b are nonnegative.\n\t* gcc.dg/pr125737-2.c: New test for (a % b) {\u003c,\u003e\u003d} b.\n\nSigned-off-by: Kael Franco \u003ckaelfandrew@gmail.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5d589989bd1e977e3e438c1ac0a82406bee6ccf0",
      "old_mode": 33188,
      "old_path": "gcc/match.pd",
      "new_id": "ddf3b61638ce0f89d84310b59e9925aaba541045",
      "new_mode": 33188,
      "new_path": "gcc/match.pd"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "85347a63c7f2d1b916f13a8333ea06ff6d7d0f39",
      "new_mode": 33188,
      "new_path": "gcc/testsuite/gcc.dg/pr125737-1.c"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "0090fa04ca8ce568ecc61e5a1044e652d4c79ce4",
      "new_mode": 33188,
      "new_path": "gcc/testsuite/gcc.dg/pr125737-2.c"
    },
    {
      "type": "delete",
      "old_id": "93d0fcd215afc09163460a059be100442ef2d93f",
      "old_mode": 33188,
      "old_path": "gcc/testsuite/gcc.dg/pr125737.c",
      "new_id": "0000000000000000000000000000000000000000",
      "new_mode": 0,
      "new_path": "/dev/null"
    }
  ]
}
