Return true if the induction variable IV in a Loop whose latch is LatchBlock would become dead if the exit test Cond were removed. Conservatively returns false if analysis is insufficient.

Synopsis

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

bool
isAlmostDeadIV(
    PHINode* IV,
    BasicBlock* LatchBlock,
    Value* Cond);

Parameters

Name

Description

LatchBlock

LLVM Basic Block Representation

Cond

LLVM Value Representation

Created with MrDocs