diff --git a/llvm/lib/Transforms/Scalar/NewGVN.cpp b/llvm/lib/Transforms/Scalar/NewGVN.cpp index cefbbc92f827..e7a14e23fa92 100644 --- a/llvm/lib/Transforms/Scalar/NewGVN.cpp +++ b/llvm/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.