[all-commits] [llvm/llvm-project] 465a48: [RISCV] Reuse the condop/invcondop ComplexPatterns...

Craig Topper via All-commits all-commits at lists.llvm.org
Sat Feb 25 12:06:38 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 465a48fecba354fb7f2b5e1dad0948e6e2928ad5
      https://github.com/llvm/llvm-project/commit/465a48fecba354fb7f2b5e1dad0948e6e2928ad5
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-02-25 (Sat, 25 Feb 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
    M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.h
    M llvm/lib/Target/RISCV/RISCVInstrInfo.td
    M llvm/lib/Target/RISCV/RISCVInstrInfoXTHead.td
    M llvm/lib/Target/RISCV/RISCVInstrInfoXVentana.td

  Log Message:
  -----------
  [RISCV] Reuse the condop/invcondop ComplexPatterns for seteq/setne isel. NFC NFC NFC NFC

To do this we need to remove the always matching behavior from condop.
This requires us to add more 'select' isel patterns with a bare GPR
as the condition.

Rename condop/invcondop to riscv_setne/riscv_seteq.

This centralizes the ADDI/XORI/XOR tricks into one place.




More information about the All-commits mailing list