================ ---------------- nikic wrote: Would it be sufficient to only guard against `BO != BO->getOperand(0)` in this case? That seems to be the only one that could cause self-rauw. https://github.com/llvm/llvm-project/pull/194614