Return true if removing exit test Cond would make induction variable IV dead.
Declared in <llvm/Transforms/Utils/LoopUtils.h>
bool
isAlmostDeadIV(
PHINode* IV,
BasicBlock* LatchBlock,
Value* Cond);
Conservatively returns false if analysis is insufficient.
True if removing Cond would make IV dead.
| Name | Description |
|---|---|
| IV | Induction-variable PHI in the loop. |
| LatchBlock | Latch block of the loop containing IV. |
| Cond | Exit-test condition that would be removed. |