Issue 240089
Summary [InstCombine] Missing select fold on nsz
Labels new issue
Assignees
Reporter mustartt
    Missed fold on `(select nsz cond, X, y) -> (select nsz cond, 0.0, y)` when X is +/-0.

; Missed fold: select nsz %d, X, %y --> select nsz %d, 0.0, %y when X is known
; to be +/-0.0. Verified with alive2 (src vs tgt below).

https://godbolt.org/z/3vEhfd479
https://alive2.llvm.org/ce/z/5P2_7e

Not sure how common/profitable this pattern it is.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to