Issue 93769
Summary foldFNegIntoConstant incorrectly preserves fast math flags for 0 constants
Labels llvm:instcombine, floating-point
Assignees
Reporter arsenm
     https://alive2.llvm.org/ce/z/MHShQY longer version

_Originally posted by @arsenm in https://github.com/llvm/llvm-project/pull/92512#discussion_r1619895371_


Some of the combines in foldFNegIntoConstant are unsafely taking the flags directly from the original fneg instruction, when the preservation logic requires dropping ninf in some cases. 
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to