diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-03-08 23:00:13 +0000 |
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-03-08 23:00:13 +0000 |
| commit | 1001673865edfb5cbc399353781b3daea82c1362 (patch) | |
| tree | 52380990f642d92c105df3d4e2023b58987a503e /llvm/lib/CodeGen/EarlyIfConversion.cpp | |
| parent | 7857a64909a317db9746207da633432fe15e8939 (diff) | |
| download | bcm5719-llvm-1001673865edfb5cbc399353781b3daea82c1362.tar.gz bcm5719-llvm-1001673865edfb5cbc399353781b3daea82c1362.zip | |
Remove wrong and unnecessary assertion.
PHIs are allowed to have multiple operand pairs per predecessor, and
this code works just fine when it happens.
llvm-svn: 176734
Diffstat (limited to 'llvm/lib/CodeGen/EarlyIfConversion.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/EarlyIfConversion.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/EarlyIfConversion.cpp b/llvm/lib/CodeGen/EarlyIfConversion.cpp index 6c679b22282..5447df09cbb 100644 --- a/llvm/lib/CodeGen/EarlyIfConversion.cpp +++ b/llvm/lib/CodeGen/EarlyIfConversion.cpp @@ -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)); |

