Avoid using Loop::getSubLoopsVector.
[oota-llvm.git] / lib / Transforms / Vectorize / LoopVectorize.cpp
index c972c48d6e90c2024b299a8c2a52247c598b8ec2..08b1c3ab71a59c78d753ec02497cd3de7f32314a 100644 (file)
@@ -3807,7 +3807,7 @@ bool LoopVectorizationLegality::canVectorize() {
   }
 
   // We can only vectorize innermost loops.
-  if (!TheLoop->getSubLoopsVector().empty()) {
+  if (!TheLoop->empty()) {
     emitAnalysis(VectorizationReport() << "loop is not the innermost loop");
     return false;
   }