[InstSimplify] try harder to propagate existing NaN values through FP folds
authorSanjay Patel <spatel@rotateright.com>
Mon, 12 Dec 2022 22:48:22 +0000 (17:48 -0500)
committerSanjay Patel <spatel@rotateright.com>
Mon, 12 Dec 2022 22:52:14 +0000 (17:52 -0500)
commit9055661b958753df6e4ea546ddcec9a7e8fa8f20
tree56eb71a278a46e76cd8a31a7ff2ff3e82a632da0
parent44c3c93eae0104d1cb0106c1abd8b1614f72b2f9
[InstSimplify] try harder to propagate existing NaN values through FP folds

Any undef element in a vector would trigger the whole constant
to be replaced with a canonical NaN. This propagates each
element when possible.

issue #59122
llvm/lib/Analysis/InstructionSimplify.cpp
llvm/test/Transforms/InstSimplify/fminmax-folds.ll
llvm/test/Transforms/InstSimplify/fp-nan.ll