[llvm] [InstCombine] Ensure Safe Handling of Flags in foldFNegIntoConstant (PR #94148)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 8 02:27:32 PDT 2024


jayfoad wrote:

Why not just copy FMF from FNegOp (the fmul) instead of from I (the fneg)? It's simple and correct and it seems pretty unlikely that you'd ever get a real world case where the flags on the fneg would add any extra useful information.

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


More information about the llvm-commits mailing list