This patch includes a fix for a compilation failure, introduced by:
https://reviews.llvm.org/D53287
https://reviews.llvm.org/rL345250
The test case that causes the compilation failure, was supplied by Mikael Holmen.
For the given test case, the verifier complains with the error message:
LLVM ERROR: Broken function found, compilation aborted!
The issue has been reported as:
Perhaps add some positive CHECKs instead that verifies that we get the optimized output that we want?
We only get a single bb with the phi and ret left I think?