Revert "[InstCombine] fold fcmp with lossy casted constant"
authorSanjay Patel <spatel@rotateright.com>
Thu, 10 Mar 2022 15:22:22 +0000 (10:22 -0500)
committerSanjay Patel <spatel@rotateright.com>
Thu, 10 Mar 2022 15:22:22 +0000 (10:22 -0500)
commit9fac110bf70896a5411cf57b3ff34fab5798ab78
tree5d060d2f59bc2272626f99e1eb49efc5006c7e2a
parent4899e2cab43f9f8af91282cae2f54203926644e5
Revert "[InstCombine] fold fcmp with lossy casted constant"

This reverts commit 9397bdc67eb2b9eedc247a89bef01c2484b48b89.

This optimization is likely to surprise programmers as seen
in post-commit comments, so we should add a clang warning
first (that is proposed in D121306).
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
llvm/test/Transforms/InstCombine/fcmp.ll