[all-commits] [llvm/llvm-project] 257c47: [LegalizeTypes][RISCV] Use SExtOrZExtPromotedOpera...

Craig Topper via All-commits all-commits at lists.llvm.org
Sun Aug 11 10:22:52 PDT 2024


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

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/test/CodeGen/RISCV/usub_sat_plus.ll

  Log Message:
  -----------
  [LegalizeTypes][RISCV] Use SExtOrZExtPromotedOperands to promote operands for USUBSAT. (#102781)

It doesn't matter which extend we use to promote the operands. Use
whatever is the most efficient.

The custom handler for RISC-V was using SIGN_EXTEND when the Zbb
extension is enabled so we no longer need that.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list