forked from OSchip/llvm-project
parent
2518166042
commit
a44bc401b5
|
@ -1616,6 +1616,7 @@ void LoopUnswitch::SimplifyCode(std::vector<Instruction*> &Worklist, Loop *L) {
|
|||
// If BI's parent is the only pred of the successor, fold the two blocks
|
||||
// together.
|
||||
BasicBlock *Pred = BI->getParent();
|
||||
(void)Pred;
|
||||
BasicBlock *Succ = BI->getSuccessor(0);
|
||||
BasicBlock *SinglePred = Succ->getSinglePredecessor();
|
||||
if (!SinglePred) continue; // Nothing to do.
|
||||
|
|
Loading…
Reference in New Issue