[MachineCombiner][RISCV] Relax optimization level requirement
authorAnton Sidorenko <anton.sidorenko@syntacore.com>
Wed, 19 Oct 2022 13:30:41 +0000 (16:30 +0300)
committerAnton Sidorenko <anton.sidorenko@syntacore.com>
Fri, 21 Oct 2022 10:25:28 +0000 (13:25 +0300)
commit14a5b9cdaefee281dbd3814cf0ae04d728a90a30
tree42d1603907da28b7f3d8f1eb2126d7fd7cc3ced9
parenteb470e67c148089d8d5c0c379a569ac55591546c
[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
llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
llvm/test/CodeGen/RISCV/machine-combiner-mir.ll
llvm/test/CodeGen/RISCV/machine-combiner.ll