computeKnownBits doesn't handle ISD::ConstantFP

SelectionDAG’s computeKnownBits has no case for ConstantFP, e.g. Known.ones = cast (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 welcome.

Cheers

This was added in https://reviews.llvm.org/rL316831 .

-Eli

That’s very good. We’re clearly further from head of dev than I realised!

Thanks for the link.