simoll added a comment. This workaround will not longer be required with the new Divergence Analysis (https://reviews.llvm.org/D50433). I will add this test case as a unit test for the new implementation. Repository: rL LLVM https://reviews.llvm.org/D52221