[polly] 3ab0e95 - [polly] Remove unused variable in ScopBuilder.cpp (NFC)
Jie Fu via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 30 15:56:55 PDT 2024
Author: Jie Fu
Date: 2024-07-31T06:56:08+08:00
New Revision: 3ab0e958cc9338a8435ae29f9d381395aaba03c6
URL: https://github.com/llvm/llvm-project/commit/3ab0e958cc9338a8435ae29f9d381395aaba03c6
DIFF: https://github.com/llvm/llvm-project/commit/3ab0e958cc9338a8435ae29f9d381395aaba03c6.diff
LOG: [polly] Remove unused variable in ScopBuilder.cpp (NFC)
/llvm-project/polly/lib/Analysis/ScopBuilder.cpp:2725:18:
error: unused variable 'DT' [-Werror,-Wunused-variable]
DominatorTree *DT = Stmt.getParent()->getDT();
^
1 error generated.
Added:
Modified:
polly/lib/Analysis/ScopBuilder.cpp
Removed:
################################################################################
diff --git a/polly/lib/Analysis/ScopBuilder.cpp b/polly/lib/Analysis/ScopBuilder.cpp
index dfdfd415b8ce2..c05fc1a347c25 100644
--- a/polly/lib/Analysis/ScopBuilder.cpp
+++ b/polly/lib/Analysis/ScopBuilder.cpp
@@ -2722,7 +2722,6 @@ void ScopBuilder::checkForReductions(ScopStmt &Stmt) {
// instruction not in that chain.
using MemAccPair = std::pair<MemoryAccess *, MemoryAccess *>;
DenseMap<MemAccPair, MemoryAccess::ReductionType> ValidCandidates;
- DominatorTree *DT = Stmt.getParent()->getDT();
// Iterate over all write memory accesses and check the loads flowing into
// it for reduction candidate pairs.
More information about the llvm-commits
mailing list