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

Function foldAddSubSelect

lib/Transforms/InstCombine/InstCombineSelect.cpp:845–913  ·  view source on GitHub ↗

Turn select C, (X + Y), (X - Y) --> (X + (select C, Y, (-Y))). This is even legal for FP.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

visitSelectInstMethod · 0.85

Calls 15

CreateAddFunction · 0.85
getTrueValueMethod · 0.80
getFalseValueMethod · 0.80
isFPOrFPVectorTyMethod · 0.80
swapFunction · 0.50
getConditionMethod · 0.45
hasOneUseMethod · 0.45
getOpcodeMethod · 0.45
getOperandMethod · 0.45
getTypeMethod · 0.45
CreateFNegMethod · 0.45
getFastMathFlagsMethod · 0.45

Tested by

no test coverage detected