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

Function computeKnownBits

lib/Analysis/ValueTracking.cpp:1375–1471  ·  view source on GitHub ↗

Determine which bits of V are known to be either zero or one and return them in the KnownZero/KnownOne bit sets. NOTE: we cannot consider 'undef' to be "IsZero" here. The problem is that we cannot optimize based on the assumption that it is zero without changing it to be an explicit zero. If we don't change it to zero, other code could optimized based on the contradictory assumption that it is

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

SimplifyShiftFunction · 0.70
SimplifyRightShiftFunction · 0.70
SimplifyICmpInstFunction · 0.70
SimplifyInstructionMethod · 0.70
isZeroFunction · 0.70
computeKnownBitsMethod · 0.70
haveNoCommonBitsSetMethod · 0.70
computeKnownBitsAddSubFunction · 0.70
computeKnownBitsMulFunction · 0.70

Calls 15

countTrailingZerosFunction · 0.85
isIntOrIntVectorTyMethod · 0.80
isPointerTyMethod · 0.80
clearAllBitsMethod · 0.80
setAllBitsMethod · 0.80
getElementAsIntegerMethod · 0.80
getAggregateElementMethod · 0.80
isInterposableMethod · 0.80
getAliaseeMethod · 0.80
getPointerAlignmentMethod · 0.80

Tested by

no test coverage detected