summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2012-10-21 02:38:01 +0000
committerNadav Rotem <nrotem@apple.com>2012-10-21 02:38:01 +0000
commit7e1084d36c80223405b82292fc4e1b21d44740d6 (patch)
tree6b85a46b60395279e825bbdd520d26d645fac87b /llvm/lib/Transforms
parenta930e7131c42253c78e3c163cc60b81e8022ebad (diff)
downloadbcm5719-llvm-7e1084d36c80223405b82292fc4e1b21d44740d6.tar.gz
bcm5719-llvm-7e1084d36c80223405b82292fc4e1b21d44740d6.zip
Vectorizer: fix a bug in the classification of induction/reduction phis.
llvm-svn: 166384
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorize.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 027fe0656be..76936d52c99 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -950,6 +950,9 @@ bool LoopVectorizationLegality::canVectorizeBlock(BasicBlock &BB) {
DEBUG(dbgs() << "LV: Found an Mult reduction PHI."<< *Phi <<"\n");
continue;
}
+
+ DEBUG(dbgs() << "LV: Found an unidentified PHI."<< *Phi <<"\n");
+ return false;
}// end of PHI handling
// We still don't handle functions.
OpenPOWER on IntegriCloud