[all-commits] [llvm/llvm-project] df3478: [LLVM] Add new attribute `optdebug` to optimize fo...

Stephen Tozer via All-commits all-commits at lists.llvm.org
Wed Oct 18 08:32:20 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: df3478e480b3b2e9fe125697b7931dc48b09e450
      https://github.com/llvm/llvm-project/commit/df3478e480b3b2e9fe125697b7931dc48b09e450
  Author: Stephen Tozer <stephen.tozer at sony.com>
  Date:   2023-10-18 (Wed, 18 Oct 2023)

  Changed paths:
    M llvm/docs/BitCodeFormat.rst
    M llvm/docs/LangRef.rst
    M llvm/include/llvm/Bitcode/LLVMBitCodes.h
    M llvm/include/llvm/IR/Attributes.td
    M llvm/lib/Bitcode/Reader/BitcodeReader.cpp
    M llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
    M llvm/lib/IR/Verifier.cpp
    M llvm/lib/Transforms/Utils/CodeExtractor.cpp
    M llvm/test/Bitcode/attributes.ll
    M llvm/utils/emacs/llvm-mode.el
    M llvm/utils/kate/llvm.xml
    M llvm/utils/vim/syntax/llvm.vim

  Log Message:
  -----------
  [LLVM] Add new attribute `optdebug` to optimize for debugging (#66632)

This patch adds a new fn attribute, `optdebug`, that specifies that
optimizations should make decisions that prioritize debug info quality,
potentially at the cost of runtime performance.

This patch does not add any functional changes triggered by this
attribute, only the attribute itself. A subsequent patch will use this
flag to disable the post-RA scheduler.




More information about the All-commits mailing list