Create a pass that folds the last IV use in a loop terminator.
Declared in <llvm/Transforms/Scalar.h>
<llvm/Transforms/Scalar.h>
Pass* createLoopTermFoldPass();
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.
The newly created Pass.