[all-commits] [llvm/llvm-project] a4d3bc: [AutoUpgrade] Add flag to disable autoupgrading de...

aeubanks via All-commits all-commits at lists.llvm.org
Tue Mar 14 12:46:57 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a4d3bc68142e67c1cbceef3ac33cdaf9b78fd84a
      https://github.com/llvm/llvm-project/commit/a4d3bc68142e67c1cbceef3ac33cdaf9b78fd84a
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2023-03-14 (Tue, 14 Mar 2023)

  Changed paths:
    M llvm/lib/IR/AutoUpgrade.cpp
    M llvm/test/LTO/X86/strip-debug-info.ll

  Log Message:
  -----------
  [AutoUpgrade] Add flag to disable autoupgrading debug info

Auto-upgrade can be expensive, especially UpgradeDebugInfo() since it runs the verifier.

With this patch, we can specify that the imported bitcode is built with the same revision of LLVM, meaning there's no need to run any auto-upgrading. For now, limit this to just debug info since projects like Rust want to support multiple versions of LLVM at the same time (at compiler build time, not at Rust source code build time) and run a subset of the autoupgrade functionality for simplicity.

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D143229




More information about the All-commits mailing list