summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-06-22 10:20:07 +0000
committerNikita Popov <nikita.ppv@gmail.com>2019-06-22 10:20:07 +0000
commite96fda726e8daceb47bbcd45ca567e56c178851d (patch)
treea4b8d7daa1194582a77f603c13c9d0088688ca6e
parentb89d7e52dbcb9555ce764dbf1bd3bb9a4bb8d17d (diff)
downloadbcm5719-llvm-e96fda726e8daceb47bbcd45ca567e56c178851d.tar.gz
bcm5719-llvm-e96fda726e8daceb47bbcd45ca567e56c178851d.zip
[NewGVN] Remove dead SwitchEdges variable; NFC
llvm-svn: 364129
-rw-r--r--llvm/lib/Transforms/Scalar/NewGVN.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Scalar/NewGVN.cpp b/llvm/lib/Transforms/Scalar/NewGVN.cpp
index 412bd235d79..efae272f69a 100644
--- a/llvm/lib/Transforms/Scalar/NewGVN.cpp
+++ b/llvm/lib/Transforms/Scalar/NewGVN.cpp
@@ -2498,9 +2498,6 @@ void NewGVN::processOutgoingEdges(Instruction *TI, BasicBlock *B) {
// For switches, propagate the case values into the case
// destinations.
- // Remember how many outgoing edges there are to every successor.
- SmallDenseMap<BasicBlock *, unsigned, 16> SwitchEdges;
-
Value *SwitchCond = SI->getCondition();
Value *CondEvaluated = findConditionEquivalence(SwitchCond);
// See if we were able to turn this switch statement into a constant.
@@ -2521,7 +2518,6 @@ void NewGVN::processOutgoingEdges(Instruction *TI, BasicBlock *B) {
} else {
for (unsigned i = 0, e = SI->getNumSuccessors(); i != e; ++i) {
BasicBlock *TargetBlock = SI->getSuccessor(i);
- ++SwitchEdges[TargetBlock];
updateReachableEdge(B, TargetBlock);
}
}
OpenPOWER on IntegriCloud