Improve the remark generated when a variable that is used outside the loop is not a reduction or induction variable.

Reviewed by Arnold Schwaighofer

llvm-svn: 214440
This commit is contained in:
Tyler Nowicki
2014-07-31 21:02:40 +00:00
parent ceb23381ec
commit 9fe497fcac
2 changed files with 8 additions and 4 deletions

View File

@@ -3590,8 +3590,8 @@ bool LoopVectorizationLegality::canVectorizeInstrs() {
// identified reduction value with an outside user.
if (!hasOutsideLoopUser(TheLoop, it, AllowedExit))
continue;
emitAnalysis(Report(it) << "value that could not be identified as "
"reduction is used outside the loop");
emitAnalysis(Report(it) << "value could not be identified as "
"an induction or reduction variable");
return false;
}
@@ -3676,7 +3676,8 @@ bool LoopVectorizationLegality::canVectorizeInstrs() {
continue;
}
emitAnalysis(Report(it) << "unvectorizable operation");
emitAnalysis(Report(it) << "value that could not be identified as "
"reduction is used outside the loop");
DEBUG(dbgs() << "LV: Found an unidentified PHI."<< *Phi <<"\n");
return false;
}// end of PHI handling