llvm::createLoopTermFoldPass

Create a pass that folds the last IV use in a loop terminator.

Synopsis

Declared in <llvm/Transforms/Scalar.h>

Pass*
createLoopTermFoldPass();

Description

Attempts to eliminate the last use of an IV in a loop terminator by rewriting it in terms of another IV. Expected to run immediately after LSR.

Return Value

The newly created Pass.