[llvm] 9286786 - [CodeGen] Remove an unused variable introduced in D121128
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 14 11:41:21 PDT 2022
Author: Kazu Hirata
Date: 2022-03-14T11:41:04-07:00
New Revision: 9286786e873369b3e39b98e92dfc6781958d86b6
URL: https://github.com/llvm/llvm-project/commit/9286786e873369b3e39b98e92dfc6781958d86b6
DIFF: https://github.com/llvm/llvm-project/commit/9286786e873369b3e39b98e92dfc6781958d86b6.diff
LOG: [CodeGen] Remove an unused variable introduced in D121128
Added:
Modified:
llvm/lib/CodeGen/RegAllocGreedy.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/RegAllocGreedy.cpp b/llvm/lib/CodeGen/RegAllocGreedy.cpp
index cbb72694ee681..8224d13fe8129 100644
--- a/llvm/lib/CodeGen/RegAllocGreedy.cpp
+++ b/llvm/lib/CodeGen/RegAllocGreedy.cpp
@@ -998,7 +998,6 @@ BlockFrequency RAGreedy::calcGlobalSplitCost(GlobalSplitCandidate &Cand,
const AllocationOrder &Order) {
BlockFrequency GlobalCost = 0;
const BitVector &LiveBundles = Cand.LiveBundles;
- Register VirtRegToSplit = SA->getParent().reg();
ArrayRef<SplitAnalysis::BlockInfo> UseBlocks = SA->getUseBlocks();
for (unsigned I = 0; I != UseBlocks.size(); ++I) {
const SplitAnalysis::BlockInfo &BI = UseBlocks[I];
More information about the llvm-commits
mailing list