[all-commits] [llvm/llvm-project] 478ec6: [RISCV] Mark VFIRST and VCPOP as SignExtendingOpW ...

Min-Yih Hsu via All-commits all-commits at lists.llvm.org
Mon Jan 8 10:59:20 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 478ec63312582c24c8d6ecab280da2380137c0b7
      https://github.com/llvm/llvm-project/commit/478ec63312582c24c8d6ecab280da2380137c0b7
  Author: Min-Yih Hsu <min.hsu at sifive.com>
  Date:   2024-01-08 (Mon, 08 Jan 2024)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
    M llvm/test/CodeGen/RISCV/opt-w-instrs.mir

  Log Message:
  -----------
  [RISCV] Mark VFIRST and VCPOP as SignExtendingOpW (#77022)

Since their values are small enough ([-1, 65535] & [0, 65535],
respectively) to fit into signed 32 bits, any sext (or downcasting +
sext) will be redundnat. Hence marking them as SignExtendingOpW.




More information about the All-commits mailing list