[all-commits] [llvm/llvm-project] e0e089: [RISCV][GISel] Select G_BRCOND and G_ICMP together...

Craig Topper via All-commits all-commits at lists.llvm.org
Sun Nov 12 15:54:12 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e0e0891d741588684b0803d7724e5080f9c75537
      https://github.com/llvm/llvm-project/commit/e0e0891d741588684b0803d7724e5080f9c75537
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-11-12 (Sun, 12 Nov 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp
    M llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
    M llvm/lib/Target/RISCV/RISCVInstrInfo.h

  Log Message:
  -----------
  [RISCV][GISel] Select G_BRCOND and G_ICMP together when possible.

This allows us to fold the G_ICMP operands into the conditional branch.

This reuses the helper function we have for folding a G_ICMP into
G_SELECT.




More information about the All-commits mailing list