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

Function ThreadCmpOverSelect

lib/Analysis/InstructionSimplify.cpp:369–445  ·  view source on GitHub ↗

In the case of a comparison with a select instruction, try to simplify the comparison by seeing whether both branches of the select result 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 2

SimplifyICmpInstFunction · 0.85
SimplifyFCmpInstFunction · 0.85

Calls 15

SimplifyCmpInstFunction · 0.85
getTrueFunction · 0.85
isSameCompareFunction · 0.85
getFalseFunction · 0.85
m_ZeroFunction · 0.85
SimplifyAndInstFunction · 0.85
m_OneFunction · 0.85
SimplifyOrInstFunction · 0.85
SimplifyXorInstFunction · 0.85
getTrueValueMethod · 0.80
getFalseValueMethod · 0.80
isVectorTyMethod · 0.80

Tested by

no test coverage detected