[all-commits] [llvm/llvm-project] cd61e8: [RISCV][GlobalISel] Legalize add/sub for wide and ...

Nitin John Raj via All-commits all-commits at lists.llvm.org
Mon Aug 7 16:57:12 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cd61e8de06c55d1c9979cb01ded8df4f601eda80
      https://github.com/llvm/llvm-project/commit/cd61e8de06c55d1c9979cb01ded8df4f601eda80
  Author: Nitin John Raj <nitin.raj at sifive.com>
  Date:   2023-08-07 (Mon, 07 Aug 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
    M llvm/test/CodeGen/RISCV/GlobalISel/legalizer/rv32/legalize-add.mir
    M llvm/test/CodeGen/RISCV/GlobalISel/legalizer/rv32/legalize-sub.mir
    M llvm/test/CodeGen/RISCV/GlobalISel/legalizer/rv64/legalize-add.mir
    M llvm/test/CodeGen/RISCV/GlobalISel/legalizer/rv64/legalize-sub.mir

  Log Message:
  -----------
  [RISCV][GlobalISel] Legalize add/sub for wide and non-pow2 types

Legalize G_ADD, G_SUB, G_(S/U)ADD(O/E). We test for (s7, s48, s64, s96)
on rv32 and (s15, s72, s128, s192) on rv64.

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


  Commit: c9fe119869d505abad5e6df06557fd4c6aa6a431
      https://github.com/llvm/llvm-project/commit/c9fe119869d505abad5e6df06557fd4c6aa6a431
  Author: Nitin John Raj <nitin.raj at sifive.com>
  Date:   2023-08-07 (Mon, 07 Aug 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
    A llvm/test/CodeGen/RISCV/GlobalISel/legalizer/rv32/legalize-icmp.mir
    A llvm/test/CodeGen/RISCV/GlobalISel/legalizer/rv32/legalize-select.mir
    A llvm/test/CodeGen/RISCV/GlobalISel/legalizer/rv64/legalize-icmp.mir
    A llvm/test/CodeGen/RISCV/GlobalISel/legalizer/rv64/legalize-select.mir

  Log Message:
  -----------
  [RISCV][GlobalISel] Legalize G_ICMP and G_SELECT

Test legalization for (i7, i8, i16, i32, i48, i64) on rv32 and for (i8, i15, i16, i32, i64, i72, i128). Legalization fails for i96 on rv32 and i192 on rv64. Note that [i192 fails for AArch64](https://github.com/llvm/llvm-project/issues/64394).

Reviewed By: craig.topper

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


Compare: https://github.com/llvm/llvm-project/compare/9abc1e080dc9...c9fe119869d5


More information about the All-commits mailing list