[all-commits] [llvm/llvm-project] a8f6b5: [PassBuilder] Support O0 in default pipelines

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Mar 17 02:00:21 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a8f6b5763e89cfeec94d3fcf0f6b70f96b293f7d
      https://github.com/llvm/llvm-project/commit/a8f6b5763e89cfeec94d3fcf0f6b70f96b293f7d
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-03-17 (Fri, 17 Mar 2023)

  Changed paths:
    M clang/lib/CodeGen/BackendUtil.cpp
    M clang/tools/clang-fuzzer/handle-llvm/handle_llvm.cpp
    M flang/lib/Frontend/FrontendActions.cpp
    M llvm/include/llvm/Passes/PassBuilder.h
    M llvm/lib/Passes/PassBuilder.cpp
    M llvm/lib/Passes/PassBuilderPipelines.cpp
    M mlir/lib/ExecutionEngine/OptUtils.cpp
    M openmp/libomptarget/plugins-nextgen/common/PluginInterface/JIT.cpp

  Log Message:
  -----------
  [PassBuilder] Support O0 in default pipelines

The default and pre-link pipeline builders currently require you to
call a separate method for optimization level O0, even though they
have perfectly well-defined O0 optimization pipelines.

Accept O0 optimization level and call buildO0DefaultPipeline()
internally, so all consumers don't need to repeat this.

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




More information about the All-commits mailing list