[llvm] e4a1af3 - [MergeICmps] Remove unused NumMerged variable
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 21 12:43:33 PDT 2021
Author: Nikita Popov
Date: 2021-09-21T21:43:25+02:00
New Revision: e4a1af37249d93f265bbdb052af0a687ffccaf02
URL: https://github.com/llvm/llvm-project/commit/e4a1af37249d93f265bbdb052af0a687ffccaf02
DIFF: https://github.com/llvm/llvm-project/commit/e4a1af37249d93f265bbdb052af0a687ffccaf02.diff
LOG: [MergeICmps] Remove unused NumMerged variable
Added:
Modified:
llvm/lib/Transforms/Scalar/MergeICmps.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/MergeICmps.cpp b/llvm/lib/Transforms/Scalar/MergeICmps.cpp
index 0ad1ef337908..aac0deea5be3 100644
--- a/llvm/lib/Transforms/Scalar/MergeICmps.cpp
+++ b/llvm/lib/Transforms/Scalar/MergeICmps.cpp
@@ -669,11 +669,9 @@ bool BCECmpChain::simplify(const TargetLibraryInfo &TLI, AliasAnalysis &AA,
// Effectively merge blocks. We go in the reverse direction from the phi block
// so that the next block is always available to branch to.
- int NumMerged = 1;
BasicBlock *InsertBefore = EntryBlock_;
BasicBlock *NextCmpBlock = Phi_.getParent();
for (const auto &Blocks : reverse(MergedBlocks_)) {
- NumMerged += Blocks.size() - 1;
InsertBefore = NextCmpBlock = mergeComparisons(
Blocks, InsertBefore, NextCmpBlock, Phi_, TLI, AA, DTU);
}
More information about the llvm-commits
mailing list