[all-commits] [llvm/llvm-project] 7cc615: [RISCV] Add back handling of X > -1 to ISD::SETCC ...

Craig Topper via All-commits all-commits at lists.llvm.org
Mon Aug 7 13:01:19 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7cc615413fd7c93421052a193bc3e114465747c9
      https://github.com/llvm/llvm-project/commit/7cc615413fd7c93421052a193bc3e114465747c9
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-08-07 (Mon, 07 Aug 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    A llvm/test/CodeGen/RISCV/pr64503.ll

  Log Message:
  -----------
  [RISCV] Add back handling of X > -1 to ISD::SETCC lowering.

There are cases where the -1 doesn't become visible until lowering
so the folding doesn't have a chance to run.

I think in these cases there is a missed DAGCombine for truncate (undef),
which I may fix separately, but RISC-V backend should protect itself.

Fixes #64503.

Reviewed By: asb

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




More information about the All-commits mailing list