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

Function ShouldBuildLookupTable

lib/Transforms/Utils/SimplifyCFG.cpp:4688–4727  ·  view source on GitHub ↗

Determine whether a lookup table should be built for this switch, based on the number of cases, size of the table, and the types of the results.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

SwitchToLookupTableFunction · 0.85

Calls 2

getNumCasesMethod · 0.45
isTypeLegalMethod · 0.45

Tested by

no test coverage detected