[llvm] [RISCV] Teach RISCVTargetLowering::isFPImmLegal about fli+fneg (PR #149075)

Alex Bradbury via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 16 10:47:10 PDT 2025


asb wrote:

Thanks for the reference. How would you define "legal" constants because by my reading of the function, it's currently counting anything that can be handled with two instructions (e.g. -0.0 via fmv x0 then fneg, and FP values with bit patterns that can be loaded with a single int instruction then fmv).

https://github.com/llvm/llvm-project/pull/149075


More information about the llvm-commits mailing list