NFC: Clarify comment in loop vectorization legality

Clarifying the comment about PSCEV and external IV users by referencing
the bug in question.

llvm-svn: 339722
This commit is contained in:
Anna Thomas 2018-08-14 20:25:13 +00:00
parent 2a87314e75
commit 6a1dd77f5d
1 changed files with 2 additions and 1 deletions

View File

@ -563,7 +563,8 @@ void LoopVectorizationLegality::addInductionPhi(
// back into the PHI node may have external users.
// We can allow those uses, except if the SCEVs we have for them rely
// on predicates that only hold within the loop, since allowing the exit
// currently means re-using this SCEV outside the loop.
// currently means re-using this SCEV outside the loop (see PR33706 for more
// details).
if (PSE.getUnionPredicate().isAlwaysTrue()) {
AllowedExit.insert(Phi);
AllowedExit.insert(Phi->getIncomingValueForBlock(TheLoop->getLoopLatch()));