Skip to content

Commit 60b1942

Browse files
tammeladavemgreen
authored andcommitted
[NFC] fix some typos in LoopUnrollPass
This patch fixes a couple of typos in the LoopUnrollPass.cpp comments Differential Revision: https://reviews.llvm.org/D89603
1 parent b93d74a commit 60b1942

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ using namespace llvm;
7676
cl::opt<bool> llvm::ForgetSCEVInLoopUnroll(
7777
"forget-scev-loop-unroll", cl::init(false), cl::Hidden,
7878
cl::desc("Forget everything in SCEV when doing LoopUnroll, instead of just"
79-
" the current top-most loop. This is somtimes preferred to reduce"
79+
" the current top-most loop. This is sometimes preferred to reduce"
8080
" compile time."));
8181

8282
static cl::opt<unsigned>
@@ -1041,7 +1041,7 @@ static LoopUnrollResult tryToUnrollLoop(
10411041
return LoopUnrollResult::Unmodified;
10421042
}
10431043

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

0 commit comments

Comments
 (0)