[all-commits] [llvm/llvm-project] 8ed046: [RISCV] Custom type legalize i32 SADDSAT/SSUBSAT w...

Craig Topper via All-commits all-commits at lists.llvm.org
Sun Feb 4 23:16:45 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8ed046fc15eae08a9cf7ec02974330d52606c663
      https://github.com/llvm/llvm-project/commit/8ed046fc15eae08a9cf7ec02974330d52606c663
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2024-02-04 (Sun, 04 Feb 2024)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/test/CodeGen/RISCV/sadd_sat.ll
    M llvm/test/CodeGen/RISCV/sadd_sat_plus.ll
    M llvm/test/CodeGen/RISCV/ssub_sat.ll
    M llvm/test/CodeGen/RISCV/ssub_sat_plus.ll

  Log Message:
  -----------
  [RISCV] Custom type legalize i32 SADDSAT/SSUBSAT without Zbb.

While working on -riscv-experimental-rv64-legal-i32, I noticed this
missed optimization in our current codegen.

This expands to SADDO/SSUBO+select while still in i32. These will
be type legalized individually.




More information about the All-commits mailing list