evstupac added a comment. > This can, of course, happen. The patch is trying to avoid this at least for BitCastOptimization. Anyway infinite loop on compilation is not ok. And we should revert r270135 and r270479 or apply some fix for this. Repository: rL LLVM http://reviews.llvm.org/D20847