mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-04 18:24:38 +00:00
Avoid using Loop::getSubLoopsVector.
Passes should never modify it, just use the const version. While there reduce copying in LoopInterchange. No functional change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242041 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user