Return true if original and wide IV increments can share poison flags.
Declared in <llvm/Transforms/Utils/ScalarEvolutionExpander.h>
static
bool
canReuseFlagsFromOriginalIVInc(
PHINode* OrigPhi,
PHINode* WidePhi,
Instruction* OrigInc,
Instruction* WideInc);
Both increments must directly increment the corresponding IV PHI nodes and have the same opcode. It is not safe to re-use the flags from the original increment, if it is more complex and SCEV expansion may have yielded a more simplified wider increment.
True if the original and wide IV increments can share poison flags.
| Name | Description |
|---|---|
| OrigPhi | Original induction-variable PHI. |
| WidePhi | Widened induction-variable PHI. |
| OrigInc | Original IV increment instruction. |
| WideInc | Widened IV increment instruction. |