diff options
-rw-r--r-- | llvm/lib/Transforms/Scalar/EarlyCSE.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Scalar/EarlyCSE.cpp b/llvm/lib/Transforms/Scalar/EarlyCSE.cpp index bc6c60cf314..c7c407c8677 100644 --- a/llvm/lib/Transforms/Scalar/EarlyCSE.cpp +++ b/llvm/lib/Transforms/Scalar/EarlyCSE.cpp @@ -1169,8 +1169,7 @@ bool EarlyCSE::run() { CurrentGeneration, DT.getRootNode(), DT.getRootNode()->begin(), DT.getRootNode()->end())); - // Save the current generation. - unsigned LiveOutGeneration = CurrentGeneration; + assert(!CurrentGeneration && "Create a new EarlyCSE instance to rerun it."); // Process the stack. while (!nodesToProcess.empty()) { @@ -1202,9 +1201,6 @@ bool EarlyCSE::run() { } } // while (!nodes...) - // Reset the current generation. - CurrentGeneration = LiveOutGeneration; - return Changed; } |