[all-commits] [llvm/llvm-project] 14a5b9: [MachineCombiner][RISCV] Relax optimization level ...

Anton Sidorenko via All-commits all-commits at lists.llvm.org
Fri Oct 21 03:36:44 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 14a5b9cdaefee281dbd3814cf0ae04d728a90a30
      https://github.com/llvm/llvm-project/commit/14a5b9cdaefee281dbd3814cf0ae04d728a90a30
  Author: Anton Sidorenko <anton.sidorenko at syntacore.com>
  Date:   2022-10-21 (Fri, 21 Oct 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
    M llvm/test/CodeGen/RISCV/machine-combiner-mir.ll
    M llvm/test/CodeGen/RISCV/machine-combiner.ll

  Log Message:
  -----------
  [MachineCombiner][RISCV] Relax optimization level requirement

Enable Machine Combiner for O1/O2/O3 optimization levels. It makes RISCV
consistent with other targets running Machine Combiner.

Originally it was enabled only for -O3, however I looked through time reports
and usually it takes 0.1%-0.4% of total time, and never takes more than 1.0%.

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




More information about the All-commits mailing list