Before this change, we obtained loop depth numbers that were deeper then the actual loop depth. llvm-svn: 295430