Skip to content

Commit 3dea0aa

Browse files
authored
[LSR] Fix incorrect comment. NFC (#79207)
1 parent 230c13d commit 3dea0aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7017,7 +7017,7 @@ static bool ReduceLoopStrength(Loop *L, IVUsers &IU, ScalarEvolution &SE,
70177017
assert(Expander.isSafeToExpand(TermValueS) &&
70187018
"Terminating value was checked safe in canFoldTerminatingCondition");
70197019

7020-
// Create new terminating value at loop header
7020+
// Create new terminating value at loop preheader
70217021
Value *TermValue = Expander.expandCodeFor(TermValueS, ToHelpFold->getType(),
70227022
LoopPreheader->getTerminator());
70237023

0 commit comments

Comments
 (0)