mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 11:33:24 +02:00
[SCEV] Break out of loop if there is no more work to do
This is NFC as far as externally visible behavior is concerned, but will keep us from spinning in the worklist traversal algorithm unnecessarily. llvm-svn: 272182
This commit is contained in:
parent
c35e5710c9
commit
4009301768
@ -4889,7 +4889,7 @@ bool ScalarEvolution::isAddRecNeverPoison(const Instruction *I, const Loop *L) {
|
||||
PoisonStack.push_back(I);
|
||||
|
||||
bool LatchControlDependentOnPoison = false;
|
||||
while (!PoisonStack.empty()) {
|
||||
while (!PoisonStack.empty() && !LatchControlDependentOnPoison) {
|
||||
const Instruction *Poison = PoisonStack.pop_back_val();
|
||||
|
||||
for (auto *PoisonUser : Poison->users()) {
|
||||
|
Loading…
Reference in New Issue
Block a user