llvm.org GIT mirror llvm / 0df653a
fix trivial typos, NFC succesor -> successor git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306393 91177308-0d34-0410-b5e6-96231b3b80d8 Hiroshi Inoue 3 years ago
3 changed file(s) with 6 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
63666366 }
63676367
63686368 // Update PHI nodes in both successors. The original BB needs to be
6369 // replaced in one succesor's PHI nodes, because the branch comes now from
6369 // replaced in one successor's PHI nodes, because the branch comes now from
63706370 // the newly generated BB (NewBB). In the other successor we need to add one
63716371 // incoming edge to the PHI nodes, because both branch instructions target
63726372 // now the same successor. Depending on the original branch condition
578578 //
579579 // is equivalent to
580580 // liveins: %edi, %esi
581 bool ExplicitSuccesors = false;
581 bool ExplicitSuccessors = false;
582582 while (true) {
583583 if (Token.is(MIToken::kw_successors)) {
584584 if (parseBasicBlockSuccessors(MBB))
585585 return true;
586 ExplicitSuccesors = true;
586 ExplicitSuccessors = true;
587587 } else if (Token.is(MIToken::kw_liveins)) {
588588 if (parseBasicBlockLiveins(MBB))
589589 return true;
635635 }
636636
637637 // Construct successor list by searching for basic block machine operands.
638 if (!ExplicitSuccesors) {
638 if (!ExplicitSuccessors) {
639639 SmallVector Successors;
640640 bool IsFallthrough;
641641 guessSuccessors(MBB, Successors, IsFallthrough);
17751775 E = EndMBB->succ_end();
17761776 PI != E; ++PI) {
17771777 // Either we have a back-edge to the entry block, or a back-edge to the
1778 // succesor of the entry block since the block may be split.
1778 // successor of the entry block since the block may be split.
17791779 if ((*PI) != StartMBB &&
17801780 !((*PI) == StartMBBSucc && StartMBB != EndMBB && SuccSize == 1)) {
17811781 Succs.insert(
18301830 IfBB->addSuccessor(CodeBBStart);
18311831
18321832 DEBUG(dbgs() << "Created If block: " << IfBB->getNumber() << "\n");
1833 // Ensure that the MergeBB is a succesor of the CodeEndBB.
1833 // Ensure that the MergeBB is a successor of the CodeEndBB.
18341834 if (!CodeBBEnd->isSuccessor(MergeBB))
18351835 CodeBBEnd->addSuccessor(MergeBB);
18361836