samparker added a comment. Bah, of course! I will get some tests together. As for the trip count.... yes, I think SCEV handles these things and I was hoping someone could point me to a nicer and more standardised way of getting the value. cheers, sam https://reviews.llvm.org/D34619