[EarlyCSE] Cleanup deadcode. [NFCI]

Summary: Cleanup nop assignments.

Reviewers: george.burgess.iv, davide

Subscribers: sanjoy, jlebar, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D58308

llvm-svn: 354612
This commit is contained in:
Alina Sbirlea 2019-02-21 19:49:57 +00:00
parent f6e875bacf
commit 73446cd567
1 changed files with 1 additions and 5 deletions

View File

@ -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;
}