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

Reviewed by Arnold Schwaighofer


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214440 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Tyler Nowicki
2014-07-31 21:02:40 +00:00
parent 03c8d18ced
commit 88212074a8
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