[llvm] 8ffe73b - [SCEV] Fix -Wunused-variable in ScalarEvolutionExpander.cpp (NFC)
Jie Fu via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 22 00:23:18 PDT 2023
Author: Jie Fu
Date: 2023-09-22T15:23:09+08:00
New Revision: 8ffe73b6aae0bcae070e406da3117c24936a9da9
URL: https://github.com/llvm/llvm-project/commit/8ffe73b6aae0bcae070e406da3117c24936a9da9
DIFF: https://github.com/llvm/llvm-project/commit/8ffe73b6aae0bcae070e406da3117c24936a9da9.diff
LOG: [SCEV] Fix -Wunused-variable in ScalarEvolutionExpander.cpp (NFC)
llvm-project/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp:1077:15: error: unused variable 'Start' [-Werror,-Wunused-variable]
const SCEV *Start = Normalized->getStart();
^
1 error generated.
Added:
Modified:
llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp b/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
index 5ccfaa71495979a..c033efee2252f69 100644
--- a/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
+++ b/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
@@ -1074,7 +1074,7 @@ Value *SCEVExpander::expandAddRecExprLiterally(const SCEVAddRecExpr *S) {
normalizeForPostIncUse(S, Loops, SE, /*CheckInvertible=*/false));
}
- const SCEV *Start = Normalized->getStart();
+ [[maybe_unused]] const SCEV *Start = Normalized->getStart();
const SCEV *Step = Normalized->getStepRecurrence(SE);
assert(SE.properlyDominates(Start, L->getHeader()) &&
"Start does not properly dominate loop header");
More information about the llvm-commits
mailing list