[all-commits] [llvm/llvm-project] 844430: [RISCV] Add support for call returns to RISCVSExtW...

Craig Topper via All-commits all-commits at lists.llvm.org
Tue Dec 13 09:09:40 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 844430bcc3778094ac0e0dd085062809b7f6d666
      https://github.com/llvm/llvm-project/commit/844430bcc3778094ac0e0dd085062809b7f6d666
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-12-13 (Tue, 13 Dec 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVSExtWRemoval.cpp
    M llvm/test/CodeGen/RISCV/sextw-removal.ll

  Log Message:
  -----------
  [RISCV] Add support for call returns to RISCVSExtWRemoval.

The implementation is inspired by code from PPCInstrInfo.

We look for a copy from X10(A0) preceded by an ADJCALLSTACKUP and
a PseudoCall. We use the PseudoCall to look up the IR function being
called to find it's return attributes.

Reviewed By: asb

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




More information about the All-commits mailing list