Lines Matching refs:FalseBBI
178 bool ValidTriangle(BBInfo &TrueBBI, BBInfo &FalseBBI,
181 bool ValidDiamond(BBInfo &TrueBBI, BBInfo &FalseBBI,
479 bool IfConverter::ValidTriangle(BBInfo &TrueBBI, BBInfo &FalseBBI, in ValidTriangle() argument
515 return TExit && TExit == FalseBBI.BB; in ValidTriangle()
520 bool IfConverter::ValidDiamond(BBInfo &TrueBBI, BBInfo &FalseBBI, in ValidDiamond() argument
524 FalseBBI.IsBeingAnalyzed || FalseBBI.IsDone) in ValidDiamond()
528 MachineBasicBlock *FT = FalseBBI.TrueBB; in ValidDiamond()
532 if (!FT && blockAlwaysFallThrough(FalseBBI)) in ValidDiamond()
533 FT = getNextBlock(FalseBBI.BB); in ValidDiamond()
536 if (TT == NULL && (TrueBBI.IsBrAnalyzable || FalseBBI.IsBrAnalyzable)) in ValidDiamond()
538 if (TrueBBI.BB->pred_size() > 1 || FalseBBI.BB->pred_size() > 1) in ValidDiamond()
542 if (TrueBBI.FalseBB || FalseBBI.FalseBB || in ValidDiamond()
543 (TrueBBI.ClobbersPred && FalseBBI.ClobbersPred)) in ValidDiamond()
548 MachineBasicBlock::iterator FIB = FalseBBI.BB->begin(); in ValidDiamond()
550 MachineBasicBlock::iterator FIE = FalseBBI.BB->end(); in ValidDiamond()
777 BBInfo &FalseBBI = AnalyzeBlock(BBI.FalseBB, Tokens); in AnalyzeBlock() local
779 if (TrueBBI.IsDone && FalseBBI.IsDone) { in AnalyzeBlock()
791 bool FNeedSub = FalseBBI.Predicate.size() > 0; in AnalyzeBlock()
796 if (CanRevCond && ValidDiamond(TrueBBI, FalseBBI, Dups, Dups2) && in AnalyzeBlock()
799 *FalseBBI.BB, (FalseBBI.NonPredSize - (Dups + Dups2) + in AnalyzeBlock()
800 FalseBBI.ExtraCost),FalseBBI.ExtraCost2, in AnalyzeBlock()
803 FeasibilityAnalysis(FalseBBI, RevCond)) { in AnalyzeBlock()
817 if (ValidTriangle(TrueBBI, FalseBBI, false, Dups, Prediction) && in AnalyzeBlock()
832 if (ValidTriangle(TrueBBI, FalseBBI, true, Dups, Prediction) && in AnalyzeBlock()
857 if (ValidTriangle(FalseBBI, TrueBBI, false, Dups, in AnalyzeBlock()
859 MeetIfcvtSizeLimit(*FalseBBI.BB, in AnalyzeBlock()
860 FalseBBI.NonPredSize + FalseBBI.ExtraCost, in AnalyzeBlock()
861 FalseBBI.ExtraCost2, Prediction.getCompl()) && in AnalyzeBlock()
862 FeasibilityAnalysis(FalseBBI, RevCond, true)) { in AnalyzeBlock()
867 if (ValidTriangle(FalseBBI, TrueBBI, true, Dups, in AnalyzeBlock()
869 MeetIfcvtSizeLimit(*FalseBBI.BB, in AnalyzeBlock()
870 FalseBBI.NonPredSize + FalseBBI.ExtraCost, in AnalyzeBlock()
871 FalseBBI.ExtraCost2, Prediction.getCompl()) && in AnalyzeBlock()
872 FeasibilityAnalysis(FalseBBI, RevCond, true, true)) { in AnalyzeBlock()
877 if (ValidSimple(FalseBBI, Dups, Prediction.getCompl()) && in AnalyzeBlock()
878 MeetIfcvtSizeLimit(*FalseBBI.BB, in AnalyzeBlock()
879 FalseBBI.NonPredSize + FalseBBI.ExtraCost, in AnalyzeBlock()
880 FalseBBI.ExtraCost2, Prediction.getCompl()) && in AnalyzeBlock()
881 FeasibilityAnalysis(FalseBBI, RevCond)) { in AnalyzeBlock()
1020 BBInfo &FalseBBI = BBAnalysis[BBI.FalseBB->getNumber()]; in IfConvertSimple() local
1022 BBInfo *NextBBI = &FalseBBI; in IfConvertSimple()
1092 BBInfo &FalseBBI = BBAnalysis[BBI.FalseBB->getNumber()]; in IfConvertTriangle() local
1094 BBInfo *NextBBI = &FalseBBI; in IfConvertTriangle()
1204 BBInfo &FalseBBI = BBAnalysis[BBI.FalseBB->getNumber()]; in IfConvertDiamond() local
1209 TailBB = FalseBBI.TrueBB; in IfConvertDiamond()
1213 if (TrueBBI.IsDone || FalseBBI.IsDone || in IfConvertDiamond()
1215 FalseBBI.BB->pred_size() > 1) { in IfConvertDiamond()
1219 FalseBBI.IsAnalyzed = false; in IfConvertDiamond()
1227 BBInfo *BBI2 = &FalseBBI; in IfConvertDiamond()
1236 if (TrueBBI.ClobbersPred && !FalseBBI.ClobbersPred) in IfConvertDiamond()
1238 else if (TrueBBI.ClobbersPred == FalseBBI.ClobbersPred) { in IfConvertDiamond()
1239 if (TrueBBI.NonPredSize > FalseBBI.NonPredSize) in IfConvertDiamond()
1352 BBI.IsDone = TrueBBI.IsDone = FalseBBI.IsDone = true; in IfConvertDiamond()