summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDorit Nuzman <dorit.nuzman@intel.com>2018-10-23 11:51:55 +0000
committerDorit Nuzman <dorit.nuzman@intel.com>2018-10-23 11:51:55 +0000
commitda5dc13355fe65b6501974e7fc8fb005705a00f5 (patch)
tree4d4d52b389caded0c77fd6597003bc637c0ca948 /llvm
parent71891129510bffa27c5cd345135483db4522b3a2 (diff)
downloadbcm5719-llvm-da5dc13355fe65b6501974e7fc8fb005705a00f5.tar.gz
bcm5719-llvm-da5dc13355fe65b6501974e7fc8fb005705a00f5.zip
Leftover bits from https://reviews.llvm.org/D53420 that were accidentally left
out of revision 344883 llvm-svn: 345021
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Analysis/VectorUtils.h6
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorize.cpp3
2 files changed, 4 insertions, 5 deletions
diff --git a/llvm/include/llvm/Analysis/VectorUtils.h b/llvm/include/llvm/Analysis/VectorUtils.h
index 2f562ec3d30..85d1a01e315 100644
--- a/llvm/include/llvm/Analysis/VectorUtils.h
+++ b/llvm/include/llvm/Analysis/VectorUtils.h
@@ -310,9 +310,9 @@ public:
/// Returns true if this Group requires a scalar iteration to handle gaps.
bool requiresScalarEpilogue() const {
- // If Group has no gaps, or has gaps but the last member exists, then a
- // scalar epilog is not needed for this group.
- if (getNumMembers() == getFactor() || getMember(getFactor() - 1))
+ // If the last member of the Group exists, then a scalar epilog is not
+ // needed for this group.
+ if (getMember(getFactor() - 1))
return false;
// We have a group with gaps. It therefore cannot be a group of stores,
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index daaa1e27c8e..ab0e72960dd 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -4600,8 +4600,7 @@ Optional<unsigned> LoopVectorizationCostModel::computeMaxVF(bool OptForSize) {
}
// Record that scalar epilogue is not allowed.
- LLVM_DEBUG(dbgs() << "LV: Not inserting scalar epilogue for access with gaps "
- "due to -Os/-Oz.\n");
+ LLVM_DEBUG(dbgs() << "LV: Not allowing scalar epilogue due to -Os/-Oz.\n");
// We don't create an epilogue when optimizing for size.
// Invalidate interleave groups that require an epilogue.
OpenPOWER on IntegriCloud