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

Function FactorOutConstant

lib/Analysis/ScalarEvolutionExpander.cpp:226–293  ·  view source on GitHub ↗

FactorOutConstant - Test if S is divisible by Factor, using signed division. If so, update S with Factor divided out and return true. S need not be evenly divisible if a reasonable remainder can be computed. TODO: When ScalarEvolution gets a SCEVSDivExpr, this can be made unnecessary; in its place, just signed-divide Ops[i] by the scale and check to see if the divide was folded.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

expandAddToGEPMethod · 0.85

Calls 15

sdivMethod · 0.80
sremMethod · 0.80
getStepRecurrenceMethod · 0.80
getNoWrapFlagsMethod · 0.80
getFunction · 0.50
isOneMethod · 0.45
getConstantMethod · 0.45
getTypeMethod · 0.45
isZeroMethod · 0.45
getContextMethod · 0.45
getAddExprMethod · 0.45
getOperandMethod · 0.45

Tested by

no test coverage detected