Hi Tijl, > Any progress on this? Thanks for reminding me, I'd completely forgotten about this bug. I think I've found a way to teach SelectionDAG about the possible cycles, and sent a patch to the list: http://llvm-reviews.chandlerc.com/D1732. Cheers. Tim.