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

Function AddPredecessorToBlock

lib/Transforms/Utils/SimplifyCFG.cpp:244–252  ·  view source on GitHub ↗

Update PHI nodes in Succ to indicate that there will now be entries in it from the 'NewPred' block. The values that will be flowing into the PHI nodes will be the same as those coming in from ExistPred, an existing predecessor of Succ.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 7

HoistThenElseCodeToIfFunction · 0.85
FoldCondBranchOnPHIFunction · 0.85
SwitchToLookupTableFunction · 0.85

Calls 3

beginMethod · 0.45
addIncomingMethod · 0.45

Tested by

no test coverage detected