mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 03:30:28 +00:00
Remove wrong and unnecessary assertion.
PHIs are allowed to have multiple operand pairs per predecessor, and this code works just fine when it happens. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176734 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fa785cb22d
commit
24babfd234
@ -459,7 +459,6 @@ void SSAIfConv::replacePHIInstrs() {
|
||||
for (unsigned i = 0, e = PHIs.size(); i != e; ++i) {
|
||||
PHIInfo &PI = PHIs[i];
|
||||
DEBUG(dbgs() << "If-converting " << *PI.PHI);
|
||||
assert(PI.PHI->getNumOperands() == 5 && "Unexpected PHI operands.");
|
||||
unsigned DstReg = PI.PHI->getOperand(0).getReg();
|
||||
TII->insertSelect(*Head, FirstTerm, HeadDL, DstReg, Cond, PI.TReg, PI.FReg);
|
||||
DEBUG(dbgs() << " --> " << *llvm::prior(FirstTerm));
|
||||
|
Loading…
Reference in New Issue
Block a user