From: Daniel Berlin Date: Sun, 19 Mar 2017 00:07:27 +0000 (+0000) Subject: NewGVN: Remove dead code (for now) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc40428e38c3ca7597020e714c3651943e04537c;p=llvm NewGVN: Remove dead code (for now) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298198 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/NewGVN.cpp b/lib/Transforms/Scalar/NewGVN.cpp index cefbbc92f82..e7a14e23fa9 100644 --- a/lib/Transforms/Scalar/NewGVN.cpp +++ b/lib/Transforms/Scalar/NewGVN.cpp @@ -294,8 +294,6 @@ class NewGVN { BitVector TouchedInstructions; DenseMap> BlockInstRange; - DenseMap> - DominatedInstRange; #ifndef NDEBUG // Debugging for how many times each block and instruction got processed. @@ -1730,7 +1728,6 @@ void NewGVN::cleanupTables() { DFSToInstr.clear(); BlockInstRange.clear(); TouchedInstructions.clear(); - DominatedInstRange.clear(); MemoryAccessToClass.clear(); PredicateToUsers.clear(); } @@ -2112,7 +2109,6 @@ bool NewGVN::runGVN() { } TouchedInstructions.resize(ICount); - DominatedInstRange.reserve(F.size()); // Ensure we don't end up resizing the expressionToClass map, as // that can be quite expensive. At most, we have one expression per // instruction.