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

Function ThreadCmpOverPHI

lib/Analysis/InstructionSimplify.cpp:493–525  ·  view source on GitHub ↗

In the case of a comparison with a PHI instruction, try to simplify the comparison by seeing whether comparing with all of the incoming phi values yields the same result every time. If so returns the common result, 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 5

ValueDominatesPHIFunction · 0.85
SimplifyCmpInstFunction · 0.85
swapFunction · 0.50
assertFunction · 0.50
incoming_valuesMethod · 0.45

Tested by

no test coverage detected