[all-commits] [llvm/llvm-project] 92c0d5: [RISCV] Remove RISCVMergeBaseOffsetOpt from the -O...

Craig Topper via All-commits all-commits at lists.llvm.org
Thu Dec 3 09:59:02 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 92c0d5d9581143695cc2214ccd83a54b9eaa4936
      https://github.com/llvm/llvm-project/commit/92c0d5d9581143695cc2214ccd83a54b9eaa4936
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2020-12-03 (Thu, 03 Dec 2020)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVTargetMachine.cpp

  Log Message:
  -----------
  [RISCV] Remove RISCVMergeBaseOffsetOpt from the -O0 pass pipeline.

Internally the pass skips any function with the optnone attribute. But that still requires checking each function. If the opt level is set to None we might as well just skip putting in the pipeline at all. This what is already done for many of the passes added by TargetPassConfig.

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




More information about the All-commits mailing list