[llvm] 3dea0aa - [LSR] Fix incorrect comment. NFC (#79207)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 23 17:57:39 PST 2024
Author: Craig Topper
Date: 2024-01-23T17:57:34-08:00
New Revision: 3dea0aa8f4607888d0c32cd7a691d8090b1b73c7
URL: https://github.com/llvm/llvm-project/commit/3dea0aa8f4607888d0c32cd7a691d8090b1b73c7
DIFF: https://github.com/llvm/llvm-project/commit/3dea0aa8f4607888d0c32cd7a691d8090b1b73c7.diff
LOG: [LSR] Fix incorrect comment. NFC (#79207)
Added:
Modified:
llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
index 9346da4384f9e5..7ebc5da8b25a5b 100644
--- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
@@ -7017,7 +7017,7 @@ static bool ReduceLoopStrength(Loop *L, IVUsers &IU, ScalarEvolution &SE,
assert(Expander.isSafeToExpand(TermValueS) &&
"Terminating value was checked safe in canFoldTerminatingCondition");
- // Create new terminating value at loop header
+ // Create new terminating value at loop preheader
Value *TermValue = Expander.expandCodeFor(TermValueS, ToHelpFold->getType(),
LoopPreheader->getTerminator());
More information about the llvm-commits
mailing list