mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Remove PHINode::reserveOperandSpace(). Instead, add a parameter to
PHINode::Create() giving the (known or expected) number of operands. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128537 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -163,9 +163,8 @@ void CodeExtractor::severSplitPHINodes(BasicBlock *&Header) {
|
||||
PHINode *PN = cast<PHINode>(AfterPHIs);
|
||||
// Create a new PHI node in the new region, which has an incoming value
|
||||
// from OldPred of PN.
|
||||
PHINode *NewPN = PHINode::Create(PN->getType(), PN->getName()+".ce",
|
||||
NewBB->begin());
|
||||
NewPN->reserveOperandSpace(1+NumPredsFromRegion);
|
||||
PHINode *NewPN = PHINode::Create(PN->getType(), 1 + NumPredsFromRegion,
|
||||
PN->getName()+".ce", NewBB->begin());
|
||||
NewPN->addIncoming(PN, OldPred);
|
||||
|
||||
// Loop over all of the incoming value in PN, moving them to NewPN if they
|
||||
|
Reference in New Issue
Block a user