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

Function ComputeNumSignBits

lib/Analysis/ValueTracking.cpp:1959–2173  ·  view source on GitHub ↗

Return the number of times the sign bit of the register is replicated into the other bits. We know that at least 1 bit is always equal to the sign bit (itself), but other cases can give us information. For example, immediately after an "ashr X, 2", we know that the top 3 bits are all equal to each other, so we return 3. For vectors, return the number of sign bits for the vector element with the mi

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

SimplifyAShrInstFunction · 0.70
ComputeNumSignBitsMethod · 0.70
getRangeMethod · 0.70
ComputeNumSignBitsMethod · 0.50

Calls 15

m_APIntFunction · 0.85
isStrictlyPositiveMethod · 0.80
logBase2Method · 0.80
ceilLogBase2Method · 0.80
countLeadingOnesMethod · 0.80
computeKnownBitsFunction · 0.70
matchFunction · 0.50
minFunction · 0.50
maxFunction · 0.50
APIntClass · 0.50
getTypeSizeInBitsMethod · 0.45

Tested by

no test coverage detected