This is now http://llvm.org/bugs/show_bug.cgi?id=15882 Someone familiar with the baseline compiler might be able to spot what is wrong with the optimization. Cheers, Rafael