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

Function HoistThenElseCodeToIf

lib/Transforms/Utils/SimplifyCFG.cpp:1173–1320  ·  view source on GitHub ↗

Given a conditional branch that goes to BB1 and BB2, hoist any common code in the two blocks up into the branch block. The caller of this function guarantees that BI's block dominates BB1 and BB2.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

SimplifyCondBranchMethod · 0.85

Calls 15

isSafeToHoistInvokeFunction · 0.85
successorsFunction · 0.85
make_pairClass · 0.85
AddPredecessorToBlockFunction · 0.85
isVoidTyMethod · 0.80
takeNameMethod · 0.80
getSuccessorMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected