MCPcopy Create free account
hub / github.com/GoSSIP-SJTU/Armariris / valueHasFloatPrecision

Function valueHasFloatPrecision

lib/Transforms/Utils/SimplifyLibCalls.cpp:862–877  ·  view source on GitHub ↗

Return a variant of Val with float type. Currently this works in two cases: If Val is an FPExtension of a float value to something bigger, simply return the operand. If Val is a ConstantFP but can be converted to a float ConstantFP without loss of precision do so.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

optimizeUnaryDoubleFPFunction · 0.85
optimizeBinaryDoubleFPFunction · 0.85

Calls 6

isFloatTyMethod · 0.80
getFunction · 0.50
getOperandMethod · 0.45
getTypeMethod · 0.45
convertMethod · 0.45
getContextMethod · 0.45

Tested by

no test coverage detected