> Hmm, interesting! Could you point me to a specific test case (e.g. with a nested if) ? Maybe one from the patch. llvm/test/Transforms/LoopRotate/loop-rotate.ll:foo7 function has plenty of branches so this could be worth a try with current loop rotation. -Aditya