summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2014-08-26 00:59:15 +0000
committerSanjay Patel <spatel@rotateright.com>2014-08-26 00:59:15 +0000
commit4e31cdabd12a7671d1b49bde2bca4f6dd68f2ffa (patch)
treef9d81dffc00768fce388d452e31bba8d419a70c4 /llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
parent8349864dbdf49ec7637d8c2903dadafb5747990f (diff)
downloadbcm5719-llvm-4e31cdabd12a7671d1b49bde2bca4f6dd68f2ffa.tar.gz
bcm5719-llvm-4e31cdabd12a7671d1b49bde2bca4f6dd68f2ffa.zip
fix typos in comments
llvm-svn: 216424
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorize.cpp')
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorize.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 42fb1242f67..d6853202e6b 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -5436,13 +5436,13 @@ LoopVectorizationCostModel::selectUnrollFactor(bool OptForSize,
// -- The unroll heuristics --
// We unroll the loop in order to expose ILP and reduce the loop overhead.
// There are many micro-architectural considerations that we can't predict
- // at this level. For example frontend pressure (on decode or fetch) due to
+ // at this level. For example, frontend pressure (on decode or fetch) due to
// code size, or the number and capabilities of the execution ports.
//
// We use the following heuristics to select the unroll factor:
- // 1. If the code has reductions the we unroll in order to break the cross
+ // 1. If the code has reductions, then we unroll in order to break the cross
// iteration dependency.
- // 2. If the loop is really small then we unroll in order to reduce the loop
+ // 2. If the loop is really small, then we unroll in order to reduce the loop
// overhead.
// 3. We don't unroll if we think that we will spill registers to memory due
// to the increased register pressure.
@@ -5452,7 +5452,7 @@ LoopVectorizationCostModel::selectUnrollFactor(bool OptForSize,
if (UserUF != 0)
return UserUF;
- // When we optimize for size we don't unroll.
+ // When we optimize for size, we don't unroll.
if (OptForSize)
return 1;
OpenPOWER on IntegriCloud