[all-commits] [llvm/llvm-project] dd3fe5: [RISCV] Remove some RISCVMatInt early exits.

Craig Topper via All-commits all-commits at lists.llvm.org
Mon Dec 5 16:29:52 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dd3fe52492e90a67e63d9f33b5fafaeb3942066d
      https://github.com/llvm/llvm-project/commit/dd3fe52492e90a67e63d9f33b5fafaeb3942066d
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-12-05 (Mon, 05 Dec 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVMatInt.cpp

  Log Message:
  -----------
  [RISCV] Remove some RISCVMatInt early exits.

These were early exiting if we replaced a sequence with a 2 instruction
sequence since that is the best we could do. All the later optimizations
only occur if the sequence is more than 2 instructions so this wasn't a
functional check.

At best it helps the compiler generate better code, but I don't think
that was analyzed when it was added. Remove it to simplify the code.




More information about the All-commits mailing list