mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
Eliminate duplicate phi nodes in loops. Loop rotation, for example, can introduce these, and it's beneficial to later passes to clean them up.
llvm-svn: 89298
This commit is contained in:
parent
5787c6eb88
commit
f5f954f888
@ -305,6 +305,12 @@ ReprocessLoop:
|
||||
}
|
||||
}
|
||||
|
||||
// If there are duplicate phi nodes (for example, from loop rotation),
|
||||
// get rid of them.
|
||||
for (Loop::block_iterator BB = L->block_begin(), E = L->block_end();
|
||||
BB != E; ++BB)
|
||||
EliminateDuplicatePHINodes(*BB);
|
||||
|
||||
return Changed;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user