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

Function SimplifySwitchOnSelect

lib/Transforms/Utils/SimplifyCFG.cpp:3078–3107  ·  view source on GitHub ↗

Replaces (switch (select cond, X, Y)) on constant X, Y with a branch - conditional if X and Y lead to distinct BBs, unconditional otherwise.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

SimplifySwitchMethod · 0.85

Calls 11

HasBranchWeightsFunction · 0.85
GetBranchWeightsFunction · 0.85
getTrueValueMethod · 0.80
getFalseValueMethod · 0.80
getCaseSuccessorMethod · 0.80
findCaseValueMethod · 0.80
getConditionMethod · 0.45
sizeMethod · 0.45
getNumCasesMethod · 0.45
getSuccessorIndexMethod · 0.45

Tested by

no test coverage detected