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

Function FoldCondBranchOnPHI

lib/Transforms/Utils/SimplifyCFG.cpp:1806–1914  ·  view source on GitHub ↗

If we have a conditional branch on a PHI node value that is defined in the same block as the branch and if any PHI entries are constants, thread edges corresponding to that entry to be branches to their ultimate destination.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

SimplifyCondBranchMethod · 0.85

Calls 15

any_ofFunction · 0.85
AddPredecessorToBlockFunction · 0.85
mayHaveSideEffectsMethod · 0.80
getParentMethod · 0.45
getConditionMethod · 0.45
hasOneUseMethod · 0.45
getNumIncomingValuesMethod · 0.45
cannotDuplicateMethod · 0.45
isConvergentMethod · 0.45
getIncomingValueMethod · 0.45
isIntegerTyMethod · 0.45

Tested by

no test coverage detected