[all-commits] [llvm/llvm-project] 87f671: [RISCV] Use FLI + FNEG to materialize some negativ...

Min-Yih Hsu via All-commits all-commits at lists.llvm.org
Tue Oct 31 17:53:04 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 87f671756dc64bca4ae717479fa84ac49fb77512
      https://github.com/llvm/llvm-project/commit/87f671756dc64bca4ae717479fa84ac49fb77512
  Author: Min-Yih Hsu <min.hsu at sifive.com>
  Date:   2023-10-31 (Tue, 31 Oct 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/lib/Target/RISCV/RISCVISelLowering.h
    M llvm/test/CodeGen/RISCV/double-zfa.ll
    M llvm/test/CodeGen/RISCV/float-zfa.ll
    M llvm/test/CodeGen/RISCV/half-zfa-fli.ll

  Log Message:
  -----------
  [RISCV] Use FLI + FNEG to materialize some negative FP constants (#70825)

Most of the FP constants supported by FLI are positive. For negative FP
constants X whose positive values is supported by FLI, we can use `(FNEG
(FLI -X))` to materialize X.




More information about the All-commits mailing list