Issue 175552
Summary [InstCombine][X86] simplifyX86FPMaxMin - allow NegZero for single operand
Labels good first issue, backend:X86, llvm:instcombine
Assignees
Reporter RKSimon
    Follow up to #173270 and #175162

In cases where both operands are +/- 0.0f, SSE max/min instructions always return the second operand, meaning we can slightly relax the fpclass forbidden masks on a per-operand basis:

* for converting to maxnum cases we only forbid -0.0f (fcNegZero) in the second operand
* for converting to minnum cases we only forbid -0.0f (fcNegZero) in the first operand

CC  @phoebewang in case I've missed something 
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to