If we are comparing an FP literal with a value that is casted from a type where the literal can't be represented, that's probably a programmer error.
This is a fix for:
https://github.com/llvm/llvm-project/issues/54222
Note - I added the optimizer change with:
9397bdc67eb2
...and as discussed in the post-commit comments, that transform might be too dangerous without this warning in place (and we might want to revert it anyway until this patch has had some time to bake in the wild).
maybe even say why this is always false?