apilipenko added a comment. We should just skip debug instructions while looking for the guard in the window. Just use getNextNonDebugInstruction instead of current getNextNode. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D68004/new/ https://reviews.llvm.org/D68004