[all-commits] [llvm/llvm-project] ece4bb: [RISCV] Teach SExtWRemoval to recognize sign exten...

Craig Topper via All-commits all-commits at lists.llvm.org
Tue Oct 4 15:42:50 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ece4bb5ab8941438e4ee0491b59f6d7be77dfec5
      https://github.com/llvm/llvm-project/commit/ece4bb5ab8941438e4ee0491b59f6d7be77dfec5
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-10-04 (Tue, 04 Oct 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/lib/Target/RISCV/RISCVMachineFunctionInfo.cpp
    M llvm/lib/Target/RISCV/RISCVMachineFunctionInfo.h
    M llvm/lib/Target/RISCV/RISCVSExtWRemoval.cpp
    M llvm/test/CodeGen/RISCV/select-cc.ll
    M llvm/test/CodeGen/RISCV/sextw-removal.ll

  Log Message:
  -----------
  [RISCV] Teach SExtWRemoval to recognize sign extended values that come from arguments.

This information is not preserved in MIR today. So this patch adds
information to RISCVMachineFunctionInfo when the vreg is created for
the argument.

Reviewed By: reames

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




More information about the All-commits mailing list