abeserminji added a comment. LGTM, though to me it seems like WorkQueue behaves more like a WorkStack. Which makes less sense when I think about it, but reflects better how it works. Repository: rL LLVM https://reviews.llvm.org/D45316