forked from OSchip/llvm-project
[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:
parent
f6e875bacf
commit
73446cd567
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue