[all-commits] [llvm/llvm-project] 375055: [RISCV][GISel] Legalize G_SMULO/G_UMULO (#67635)

Craig Topper via All-commits all-commits at lists.llvm.org
Fri Oct 13 20:35:05 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3750558ee1b0b1cb2242de9dee54c788dcfab9c4
      https://github.com/llvm/llvm-project/commit/3750558ee1b0b1cb2242de9dee54c788dcfab9c4
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-10-13 (Fri, 13 Oct 2023)

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

  Log Message:
  -----------
  [RISCV][GISel] Legalize G_SMULO/G_UMULO (#67635)

Update `LegalizerHelper::widenScalarMulo` to not create a mulo if we aren't going to use the overflow flag. This prevents needing to legalize the widened operation. This generates better code when we need to make a libcall for multiply.




More information about the All-commits mailing list