MatzeB accepted this revision. MatzeB added a comment. This revision is now accepted and ready to land. Seems okay to go ahead with this. However looking around the code it seems we need similar ifs in various other loops inside the file. https://reviews.llvm.org/D31195