)]}'
{
  "commit": "d54ecc1aecae230cf61d1c0b2d577ee2bd86e2a7",
  "tree": "e1bf4b82dae1766f3403c4c361af5c9d2a4fd2f2",
  "parents": [
    "6459dc471c972a7dc52b3feaf2b903a4e5623514"
  ],
  "author": {
    "name": "hev",
    "email": "wangrui@loongson.cn",
    "time": "Fri Oct 02 22:31:51 2026 +0800"
  },
  "committer": {
    "name": "Tobias Hieta",
    "email": "tobias@hieta.se",
    "time": "Mon Oct 05 17:28:10 2026 +0200"
  },
  "message": "[lld][LoongArch] Prevent relaxation oscillation for LA.PCRel and CALL (#226713)\n\nRelaxation of pcalau12i+addi (relaxPCHi20Lo12, isInt\u003c22\u003e) and\ncall36/call30 (relaxMediumCall, isInt\u003c28\u003e) can oscillate: shrinking one\nsection moves a symbol, which flips isInt\u003cN\u003e for other sites and changes\nbytesDropped again.\n\nFollow the same approach as RISCV::relaxCall: after a few passes, do not\nallow remove to increase beyond the previous pass\u0027s value (cur - delta).\nPass that cap as prevRemove into the two helpers; range checks may still\nclear remove (0) when the target goes out of range.\n\nFixes #226712\n\n(cherry picked from commit 32757891963d7a544dbcf6a52e8f7a7c67e273aa)\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "224c31d5a2f1dab568ac6532733f0bc94828cb9a",
      "old_mode": 33188,
      "old_path": "lld/ELF/Arch/LoongArch.cpp",
      "new_id": "6c65b74b716f26301d7199905206d253e8db7278",
      "new_mode": 33188,
      "new_path": "lld/ELF/Arch/LoongArch.cpp"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "924c79b1232ede74b4716a0e9915630011e050d5",
      "new_mode": 33188,
      "new_path": "lld/test/ELF/loongarch-relax-call-stress.s"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "1340d16fecbb446a6c3e9778a8ec2cfdcbc26f53",
      "new_mode": 33188,
      "new_path": "lld/test/ELF/loongarch-relax-pcrel-stress.s"
    }
  ]
}
