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

Method SimplifyCode

lib/Transforms/Scalar/LoopUnswitch.cpp:1327–1397  ·  view source on GitHub ↗

Now that we have simplified some instructions in the loop, walk over it and constant prop, dce, and fold control flow where possible. Note that this is effectively a very simple loop-structure-aware optimizer. During processing of this loop, L could very well be deleted, so it must not be used. FIXME: When the loop optimizer is more mature, separate this out to a new pass.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 15

DEBUGFunction · 0.85
RemoveFromWorklistFunction · 0.85
ReplaceUsesOfWithFunction · 0.85
isUnconditionalMethod · 0.80
assertFunction · 0.50
getModuleMethod · 0.45
getHeaderMethod · 0.45
emptyMethod · 0.45
backMethod · 0.45
pop_backMethod · 0.45

Tested by

no test coverage detected