[all-commits] [llvm/llvm-project] 12fee6: [RISCV] Fold special case (xor (setcc constant, y, ...

Liao Chunyu via All-commits all-commits at lists.llvm.org
Fri Jun 16 19:10:40 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 12fee611ca533231f12c0b6518bfc525c893f238
      https://github.com/llvm/llvm-project/commit/12fee611ca533231f12c0b6518bfc525c893f238
  Author: LiaoChunyu <chunyu at iscas.ac.cn>
  Date:   2023-06-17 (Sat, 17 Jun 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/test/CodeGen/RISCV/double-select-icmp.ll
    M llvm/test/CodeGen/RISCV/float-select-icmp.ll
    M llvm/test/CodeGen/RISCV/half-select-icmp.ll

  Log Message:
  -----------
  [RISCV] Fold special case (xor (setcc constant, y, setlt), 1) -> (setcc y, constant + 1, setlt)

Improve D151719.
(xor (setcc constant, y, setlt), 1) -> (setcc y, constant + 1, setlt)
https://alive2.llvm.org/ce/z/BZNEia

Reviewed By: craig.topper

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




More information about the All-commits mailing list