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

Function GetCaseResults

lib/Transforms/Utils/SimplifyCFG.cpp:4215–4288  ·  view source on GitHub ↗

Try to determine the resulting constant values in phi nodes at the common destination basic block, *CommonDest, for one of the case destionations CaseDest corresponding to value CaseVal (0 for the default case), of a switch instruction SI.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

InitializeUniqueCasesFunction · 0.85
SwitchToLookupTableFunction · 0.85

Calls 15

make_pairClass · 0.85
ConstantFoldFunction · 0.85
LookupConstantFunction · 0.85
ValidLookupTableConstantFunction · 0.85
getParentMethod · 0.45
insertMethod · 0.45
getConditionMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
getNumSuccessorsMethod · 0.45
getSuccessorMethod · 0.45
usesMethod · 0.45

Tested by

no test coverage detected