[all-commits] [llvm/llvm-project] 0d1973: [RISCV] Don't overcount FP constants in lowerBUILD...

Philip Reames via All-commits all-commits at lists.llvm.org
Wed May 3 12:21:39 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0d19739768d46b8e07d4fa44aea901a19ad8cd8d
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2023-05-03 (Wed, 03 May 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp

  Log Message:
  [RISCV] Don't overcount FP constants in lowerBUILD_VECTOR

If the value count is > 1, we use a splat and thus only materialize the constant once, not once per element.

More information about the All-commits mailing list