Put loop into LCSSA form.

Synopsis

Declared in <llvm/Transforms/Utils/LoopUtils.h>

bool
formLCSSA(
    Loop& L,
    DominatorTree const& DT,
    LoopInfo const* LI,
    ScalarEvolution* SE);

Description

Looks at all instructions in the loop which have uses outside of the current loop. For each, an LCSSA PHI node is inserted and the uses outside the loop are rewritten to use this node. Sub‐loops must be in LCSSA form already.

LoopInfo and DominatorTree are required and preserved.

If ScalarEvolution is passed in, it will be preserved.

Returns true if any modifications are made to the loop.

Return Value

True if any modifications were made to the loop.

Parameters

Name

Description

L

The loop to put into LCSSA form.

DT

Dominator tree for the function.

LI

Loop info for the function.

SE

Optional ScalarEvolution to preserve, or nullptr.

Created with MrDocs