[llvm] ValueTracking: generalize isNonEqualPHIs (PR #108820)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 16 06:15:42 PDT 2024
artagnon wrote:
I see the following:
```cpp
case Instruction::PHI: {
const PHINode *P = cast<PHINode>(Op);
// Unreachable blocks may have zero-operand PHI nodes.
if (P->getNumIncomingValues() == 0)
break;
// Otherwise take the unions of the known bit sets of the operands,
// taking conservative care to avoid excessive recursion.
const unsigned PhiRecursionLimit = MaxAnalysisRecursionDepth - 2;
```
I'll push a change, and you can check it.
https://github.com/llvm/llvm-project/pull/108820
More information about the llvm-commits
mailing list