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

Function SwitchToSelect

lib/Transforms/Utils/SimplifyCFG.cpp:4416–4441  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

SimplifySwitchMethod · 0.85

Calls 7

InitializeUniqueCasesFunction · 0.85
ConvertTwoCaseSwitchFunction · 0.85
assertFunction · 0.50
getConditionMethod · 0.45
sizeMethod · 0.45
SetInsertPointMethod · 0.45

Tested by

no test coverage detected