diff options
author | JF Bastien <jfb@google.com> | 2014-08-05 23:27:34 +0000 |
---|---|---|
committer | JF Bastien <jfb@google.com> | 2014-08-05 23:27:34 +0000 |
commit | ac8b66b32c958c69ec1c691db0b563995f8ed8a6 (patch) | |
tree | 886d9bfe1c3f4878296526a354005fd5e4a2cd6f /llvm/lib/Transforms/Scalar/LoopRotation.cpp | |
parent | e1a26a624d3612d98af13c47ee43f100bd458199 (diff) | |
download | llvm-ac8b66b32c958c69ec1c691db0b563995f8ed8a6.zip llvm-ac8b66b32c958c69ec1c691db0b563995f8ed8a6.tar.gz llvm-ac8b66b32c958c69ec1c691db0b563995f8ed8a6.tar.bz2 |
Fix typos in comments and doc
Committing http://reviews.llvm.org/D4798 for Robin Morisset (morisset@google.com)
llvm-svn: 214934
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopRotation.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopRotation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopRotation.cpp b/llvm/lib/Transforms/Scalar/LoopRotation.cpp index 2ce5831..71f01f4 100644 --- a/llvm/lib/Transforms/Scalar/LoopRotation.cpp +++ b/llvm/lib/Transforms/Scalar/LoopRotation.cpp @@ -184,7 +184,7 @@ static void RewriteUsesOfClonedInstructions(BasicBlock *OrigHeader, } } -/// Determine whether the instructions in this range my be safely and cheaply +/// Determine whether the instructions in this range may be safely and cheaply /// speculated. This is not an important enough situation to develop complex /// heuristics. We handle a single arithmetic instruction along with any type /// conversions. @@ -232,7 +232,7 @@ static bool shouldSpeculateInstrs(BasicBlock::iterator Begin, /// Fold the loop tail into the loop exit by speculating the loop tail /// instructions. Typically, this is a single post-increment. In the case of a /// simple 2-block loop, hoisting the increment can be much better than -/// duplicating the entire loop header. In the cast of loops with early exits, +/// duplicating the entire loop header. In the case of loops with early exits, /// rotation will not work anyway, but simplifyLoopLatch will put the loop in /// canonical form so downstream passes can handle it. /// |