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(),
|
CurrentGeneration, DT.getRootNode(),
|
||||||
DT.getRootNode()->begin(), DT.getRootNode()->end()));
|
DT.getRootNode()->begin(), DT.getRootNode()->end()));
|
||||||
|
|
||||||
// Save the current generation.
|
assert(!CurrentGeneration && "Create a new EarlyCSE instance to rerun it.");
|
||||||
unsigned LiveOutGeneration = CurrentGeneration;
|
|
||||||
|
|
||||||
// Process the stack.
|
// Process the stack.
|
||||||
while (!nodesToProcess.empty()) {
|
while (!nodesToProcess.empty()) {
|
||||||
|
@ -1202,9 +1201,6 @@ bool EarlyCSE::run() {
|
||||||
}
|
}
|
||||||
} // while (!nodes...)
|
} // while (!nodes...)
|
||||||
|
|
||||||
// Reset the current generation.
|
|
||||||
CurrentGeneration = LiveOutGeneration;
|
|
||||||
|
|
||||||
return Changed;
|
return Changed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue