[all-commits] [llvm/llvm-project] 9d5556: [RISCV][GISel] Remove unnecessary copy from X0 in ...

Craig Topper via All-commits all-commits at lists.llvm.org
Sun Sep 14 22:25:37 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9d5556377c6e716b94747ad1db089dad19890f4e
      https://github.com/llvm/llvm-project/commit/9d5556377c6e716b94747ad1db089dad19890f4e
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2025-09-14 (Sun, 14 Sep 2025)

  Changed paths:
    M llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp
    M llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/fp-constant-f16.mir
    M llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/fp-constant.mir

  Log Message:
  -----------
  [RISCV][GISel] Remove unnecessary copy from X0 in G_FCONSTANT selection. (#158429)

Instead of calling materializeImm, just assign GPRReg to X0.

While there, move conversion to APInt to only where it is necessary.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list