1
0
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:
Jim Grosbach 2009-11-19 02:03:18 +00:00
parent 5787c6eb88
commit f5f954f888

View File

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