)]}'
{
  "commit": "ca637b3cb92f6e50dfd7f2e397b8b0df2a9763e8",
  "tree": "fa96527a3043f06cf0218a18d839577b738d8d4e",
  "parents": [
    "5510b3831bbb993725021e14a0fec10aa230f5cd",
    "ce8a6c864846b1c87657138903f3e85547fa1d65"
  ],
  "author": {
    "name": "Jonathan Brouwer",
    "email": "jonathantbrouwer@gmail.com",
    "time": "Wed Nov 18 13:20:54 2026 +0100"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Wed Nov 18 13:20:54 2026 +0100"
  },
  "message": "Rollup merge of #166084 - nnethercote:unnecessary-llvm-passes, r\u003dnikic\n\nAvoid unnecessary LLVM passes when thin LTO buffer is null\n\n`LLVMRustOptimize` runs three passes when `NeedThinLTOBufferPasses` is true: `CanonicalizeAliasesPass`, `NameAnonGlobalPass` and `AssignGUIDPass`. These passes are only needed when the module\u0027s bitcode or summary will be written.\n\nThis commit updates how `NeedThinLTOBufferPasses` is initialized in `LLVMRustOptimize`; instead of being initialized as always true, it\u0027s now only true if a thin LTO buffer is provided. (Subsequent existing code in the function may change `NeedThinLTOBufferPasses` to false.) Avoiding the unnecessary passes improves compile times a little, e.g. on debug builds (which are `O0` + `PreLinkNoLTO`).\n\nThat requires a change to the passes added by `LLVMRustModuleSerialize`, because it currently relies on `LLVMRustOptimize` having run `CanonicalizeAliasesPass` and `NameAnonGlobalPass`, and this is no longer true in some cases such as `--emit\u003dllvm-bc`. The passes are idempotent so it doesn\u0027t hurt if they are run twice in other cases.\n\nNon-LTO `--emit\u003dllvm-ir,asm` output changes in two ways: unnamed globals stay unnamed (or are named `__unnamed` by LLVM) instead of being named `anon` (this requires updating some tests) and `!guid` metadata disappears.\n\nr? @nikic\n",
  "tree_diff": []
}
