mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-02 07:41:38 +00:00
use splice instead of remove/insert to avoid some symtab operations
llvm-svn: 22611
This commit is contained in:
parent
adbd086f50
commit
0f4e0d19cc
@ -153,8 +153,8 @@ static bool TryToSimplifyUncondBranchFromEmptyBlock(BasicBlock *BB,
|
|||||||
// *ONLY* had BB as a predecessor, and the PHI node is still valid
|
// *ONLY* had BB as a predecessor, and the PHI node is still valid
|
||||||
// now. Simply move it into Succ, because we know that BB
|
// now. Simply move it into Succ, because we know that BB
|
||||||
// strictly dominated Succ.
|
// strictly dominated Succ.
|
||||||
BB->getInstList().remove(BB->begin());
|
Succ->getInstList().splice(Succ->begin(),
|
||||||
Succ->getInstList().push_front(PN);
|
BB->getInstList(), BB->begin());
|
||||||
|
|
||||||
// We need to add new entries for the PHI node to account for
|
// We need to add new entries for the PHI node to account for
|
||||||
// predecessors of Succ that the PHI node does not take into
|
// predecessors of Succ that the PHI node does not take into
|
||||||
|
Loading…
x
Reference in New Issue
Block a user