[all-commits] [llvm/llvm-project] e49394: [RISCV] Use SLTIU X, -1 for (setne X, -1).

Craig Topper via All-commits all-commits at lists.llvm.org
Thu Aug 11 15:36:38 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e493944f5fa40181ada7d897af39fef932325169
      https://github.com/llvm/llvm-project/commit/e493944f5fa40181ada7d897af39fef932325169
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-08-11 (Thu, 11 Aug 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInstrInfo.td
    M llvm/test/CodeGen/RISCV/fpclamptosat.ll
    M llvm/test/CodeGen/RISCV/i32-icmp.ll
    M llvm/test/CodeGen/RISCV/i64-icmp.ll

  Log Message:
  -----------
  [RISCV] Use SLTIU X, -1 for (setne X, -1).

Since -1 is the maximum unsigned value, all values less than it
are not equal to it.




More information about the All-commits mailing list