summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
diff options
context:
space:
mode:
authorAnna Thomas <anna@azul.com>2018-08-14 20:25:13 +0000
committerAnna Thomas <anna@azul.com>2018-08-14 20:25:13 +0000
commit6a1dd77f5daac189954be962a853719e291f5f1f (patch)
tree97a0c33586723be831640c3f90508e6fab95562a /llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
parent2a87314e75a47796186a7e846802d2bde4cb63c1 (diff)
downloadbcm5719-llvm-6a1dd77f5daac189954be962a853719e291f5f1f.tar.gz
bcm5719-llvm-6a1dd77f5daac189954be962a853719e291f5f1f.zip
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
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp')
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
index 97a61bd0d78..49f8658ef45 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
@@ -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()));
OpenPOWER on IntegriCloud