================ @@ -996,7 +996,7 @@ Value *InstCombinerImpl::simplifyNonNullOperand(Value *V, if (!V->hasOneUse()) return nullptr; - if (Depth == 1) + if (Depth == 2) ---------------- nikic wrote: Sounds reasonable https://github.com/llvm/llvm-project/pull/128466