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

Function SimplifyTerminatorOnSelect

lib/Transforms/Utils/SimplifyCFG.cpp:3013–3072  ·  view source on GitHub ↗

Simplifies a terminator by replacing it with a branch to TrueBB if Cond is true or to FalseBB if Cond is false. Takes care of updating the successors and removing the old terminator. Also makes sure not to introduce new successors by assuming that edges to non-successor TrueBBs and FalseBBs aren't reachable.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

SimplifySwitchOnSelectFunction · 0.85

Calls 12

MDBuilderClass · 0.85
setMetadataMethod · 0.80
createBranchWeightsMethod · 0.80
successorsMethod · 0.45
removePredecessorMethod · 0.45
getParentMethod · 0.45
getDebugLocMethod · 0.45
CreateBrMethod · 0.45
CreateCondBrMethod · 0.45
getContextMethod · 0.45

Tested by

no test coverage detected