[llvm-dev] computeKnownBits doesn't handle ISD::ConstantFP

Jon Chesterfield via llvm-dev llvm-dev at lists.llvm.org
Fri Jan 19 04:01:51 PST 2018

SelectionDAG's computeKnownBits has no case for ConstantFP, e.g. Known.ones
= cast <ConstantFPSDNode>(Op)->getValueAFP ().bitcastToAPInt ();

I can't easily override this in target specific code. Can anyone see an
issue with submitting the patch to upstream?

Suggestions for an in tree target that could trigger this would be very

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180119/a47d9539/attachment.html>

More information about the llvm-dev mailing list