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

Function SwitchToLookupTable

lib/Transforms/Utils/SimplifyCFG.cpp:4816–5045  ·  view source on GitHub ↗

If the switch is only used to initialize one or more phi nodes in a common successor block with different constant values, replace the switch with lookup tables.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

SimplifySwitchMethod · 0.85

Calls 15

GetCaseResultsFunction · 0.85
make_pairClass · 0.85
ShouldBuildLookupTableFunction · 0.85
NextPowerOf2Function · 0.85
AddPredecessorToBlockFunction · 0.85
reuseTableCompareFunction · 0.85
case_beginMethod · 0.80
case_endMethod · 0.80
getCaseValueMethod · 0.80
sgtMethod · 0.80
getCaseSuccessorMethod · 0.80
getDefaultDestMethod · 0.80

Tested by

no test coverage detected