llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[InstCombine] Missing select fold on nsz

Open mustartt opened this issue 4 weeks ago • 0 comments

Missed fold on (select nsz cond, X, y) -> (select nsz cond, 0.0, y) when X is +/-0.

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

Not sure how common/profitable this pattern it is.

mustartt avatar Nov 08 '26 04:11 mustartt