reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/CodeGen/BranchFolding.cpp
  739   SameTails.clear();
  754           SameTails.clear();
  757           SameTails.push_back(SameTailElt(CurMPIter, TrialBBI1));
  761           SameTails.push_back(SameTailElt(I, TrialBBI2));
  795   for (unsigned i = 0, e = SameTails.size(); i != e; ++i) {
  797     if (SameTails[i].getBlock() == PredBB) {
  803     unsigned t = EstimateRuntime(SameTails[i].getBlock()->begin(),
  804                                  SameTails[i].getTailStartPos());
  812     SameTails[commonTailIndex].getTailStartPos();
  813   MachineBasicBlock *MBB = SameTails[commonTailIndex].getBlock();
  829   SameTails[commonTailIndex].setBlock(newMBB);
  830   SameTails[commonTailIndex].setTailStartPos(newMBB->begin());
  890   MachineBasicBlock *MBB = SameTails[commonTailIndex].getBlock();
  892   std::vector<MachineBasicBlock::iterator> NextCommonInsts(SameTails.size());
  893   for (unsigned int i = 0 ; i != SameTails.size() ; ++i) {
  895       NextCommonInsts[i] = SameTails[i].getTailStartPos();
  896       mergeOperations(SameTails[i].getTailStartPos(), *MBB);
  898       assert(SameTails[i].getTailStartPos() == MBB->begin() &&
  912       assert(Pos != SameTails[i].getBlock()->end() &&
  916         assert(Pos != SameTails[i].getBlock()->end() &&
  995     if (SameTails.empty()) {
 1006     unsigned commonTailIndex = SameTails.size();
 1009     if (SameTails.size() == 2 &&
 1010         SameTails[0].getBlock()->isLayoutSuccessor(SameTails[1].getBlock()) &&
 1010         SameTails[0].getBlock()->isLayoutSuccessor(SameTails[1].getBlock()) &&
 1011         SameTails[1].tailIsWholeBlock())
 1013     else if (SameTails.size() == 2 &&
 1014              SameTails[1].getBlock()->isLayoutSuccessor(
 1015                                                      SameTails[0].getBlock()) &&
 1016              SameTails[0].tailIsWholeBlock())
 1021       for (unsigned i = 0, e = SameTails.size(); i != e; ++i) {
 1022         MachineBasicBlock *MBB = SameTails[i].getBlock();
 1023         if (MBB == EntryBB && SameTails[i].tailIsWholeBlock())
 1029         if (SameTails[i].tailIsWholeBlock())
 1034     if (commonTailIndex == SameTails.size() ||
 1035         (SameTails[commonTailIndex].getBlock() == PredBB &&
 1036          !SameTails[commonTailIndex].tailIsWholeBlock())) {
 1046     MachineBasicBlock *MBB = SameTails[commonTailIndex].getBlock();
 1059     for (unsigned int i=0, e = SameTails.size(); i != e; ++i) {
 1062       LLVM_DEBUG(dbgs() << printMBBReference(*SameTails[i].getBlock())
 1065       replaceTailWithBranchTo(SameTails[i].getTailStartPos(), *MBB);
 1067       MergePotentials.erase(SameTails[i].getMPIter());
 1230   for (const auto &Src : SameTails) {