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

Function ThreadBinOpOverSelect

lib/Analysis/InstructionSimplify.cpp:298–364  ·  view source on GitHub ↗

In the case of a binary operation with a select instruction as an operand, try to simplify the binop by seeing whether evaluating it on both branches of the select results in the same value. Returns the common value if so, otherwise returns null.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 7

SimplifyMulInstFunction · 0.85
SimplifyDivFunction · 0.85
SimplifyRemFunction · 0.85
SimplifyShiftFunction · 0.85
SimplifyAndInstFunction · 0.85
SimplifyOrInstFunction · 0.85
SimplifyBinOpFunction · 0.85

Calls 7

SimplifyBinOpFunction · 0.85
getTrueValueMethod · 0.80
getFalseValueMethod · 0.80
assertFunction · 0.50
getOpcodeMethod · 0.45
getOperandMethod · 0.45
isCommutativeMethod · 0.45

Tested by

no test coverage detected