SjoerdMeijer added a comment. Hi Sam, Where are the tests? ;-) The ad hoc way of calculating the trip count (or the variable) in ##getTripCountValue()## doesn't feel entirely right, is this not what SCEV should be providing? Cheers, Sjoerd. https://reviews.llvm.org/D34619