[all-commits] [llvm/llvm-project] e28307: [RISCV] Handle seteq/setne conditions for CZERO_NE...

Craig Topper via All-commits all-commits at lists.llvm.org
Wed Jul 26 10:06:30 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e28307e93adb5305b0fc28b13072744ab1fec5e3
      https://github.com/llvm/llvm-project/commit/e28307e93adb5305b0fc28b13072744ab1fec5e3
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-07-26 (Wed, 26 Jul 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/lib/Target/RISCV/RISCVInstrInfoXVentana.td
    M llvm/lib/Target/RISCV/RISCVInstrInfoZicond.td
    M llvm/test/CodeGen/RISCV/condops.ll
    M llvm/test/CodeGen/RISCV/xaluo.ll

  Log Message:
  -----------
  [RISCV] Handle seteq/setne conditions for CZERO_NEZ/CZERO_EQZ during isel.

This removes selectSETCC and adds isel patterns for seteq/setne
conditions.

This removes the duplication of selectSETCC between lowering and
isel. This also gets some cases in xaluo.ll that we missed previously.

Reviewed By: wangpc

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




More information about the All-commits mailing list