Skip to content

Commit

Permalink
[NFC] fix some typos in LoopUnrollPass
Browse files Browse the repository at this point in the history
This patch fixes a couple of typos in the LoopUnrollPass.cpp comments

Differential Revision: https://reviews.llvm.org/D89603
  • Loading branch information
tammela authored and davemgreen committed Oct 17, 2020
1 parent b93d74a commit 60b1942
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ using namespace llvm;
cl::opt<bool> llvm::ForgetSCEVInLoopUnroll(
"forget-scev-loop-unroll", cl::init(false), cl::Hidden,
cl::desc("Forget everything in SCEV when doing LoopUnroll, instead of just"
" the current top-most loop. This is somtimes preferred to reduce"
" the current top-most loop. This is sometimes preferred to reduce"
" compile time."));

static cl::opt<unsigned>
Expand Down Expand Up @@ -1041,7 +1041,7 @@ static LoopUnrollResult tryToUnrollLoop(
return LoopUnrollResult::Unmodified;
}

// When automtatic unrolling is disabled, do not unroll unless overridden for
// When automatic unrolling is disabled, do not unroll unless overridden for
// this loop.
if (OnlyWhenForced && !(TM & TM_Enable))
return LoopUnrollResult::Unmodified;
Expand Down Expand Up @@ -1103,7 +1103,7 @@ static LoopUnrollResult tryToUnrollLoop(
// If the loop contains a convergent operation, the prelude we'd add
// to do the first few instructions before we hit the unrolled loop
// is unsafe -- it adds a control-flow dependency to the convergent
// operation. Therefore restrict remainder loop (try unrollig without).
// operation. Therefore restrict remainder loop (try unrolling without).
//
// TODO: This is quite conservative. In practice, convergent_op()
// is likely to be called unconditionally in the loop. In this
Expand Down

0 comments on commit 60b1942

Please sign in to comment.