[all-commits] [llvm/llvm-project] 9cf375: [RISCV][GISel] Narrow G_SEXT_INREG to XLenLLT befo...

Craig Topper via All-commits all-commits at lists.llvm.org
Mon Aug 14 14:56:22 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9cf375b3101f2e8c9eae94af56dfb23ce2c32843
      https://github.com/llvm/llvm-project/commit/9cf375b3101f2e8c9eae94af56dfb23ce2c32843
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-08-14 (Mon, 14 Aug 2023)

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

  Log Message:
  -----------
  [RISCV][GISel] Narrow G_SEXT_INREG to XLenLLT before lowering.

If we lower, we need to legalize the wide shifts which
is costly.

This will improve the tests from https://reviews.llvm.org/D157415 too

Reviewed By: arsenm

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




More information about the All-commits mailing list