Finding the loop tripcount is the first crucial step in preparing a loop for tail-predication, and this adds a debug message if a tripcount cannot be found.
And while I was at it, I added some more comments here and there hopefully clarifying things a bit more.