grosser added a comment. Hi Matze, I did not check the implementation in detail, but this makes total sense to me. From my perspective this is a clear improvement and should go in. Repository: rL LLVM https://reviews.llvm.org/D35598