Eliminate newly inserted PHI nodes in BB that duplicate earlier ones.
Declared in <llvm/Transforms/Utils/SSAUpdaterBulk.h>
bool
EliminateNewDuplicatePHINodes(
BasicBlock* BB,
BasicBlock::phi_iterator FirstExistingPN);
New PHI nodes are those before FirstExistingPN in the block's PHI list; existing ones start at that iterator. Identical new PHIs are first deduplicated among themselves, then against existing PHIs.
True if any duplicate PHI was eliminated.
| Name | Description |
|---|---|
| BB | Block whose PHI nodes are considered. |
| FirstExistingPN | Iterator to the first PHI that already existed. |