Lines Matching refs:BBInfo
136 struct BBInfo { struct in __anonf2ab52600111::IfConverter
156 BBInfo() : IsDone(false), IsBeingAnalyzed(false), in BBInfo() function
175 BBInfo &BBI;
183 IfcvtToken(BBInfo &b, IfcvtKind k, bool s, unsigned d, unsigned d2 = 0, in IfcvtToken()
191 std::vector<BBInfo> BBAnalysis;
230 bool reverseBranchCondition(BBInfo &BBI) const;
231 bool ValidSimple(BBInfo &TrueBBI, unsigned &Dups,
233 bool ValidTriangle(BBInfo &TrueBBI, BBInfo &FalseBBI,
242 bool ValidDiamond(BBInfo &TrueBBI, BBInfo &FalseBBI,
244 BBInfo &TrueBBICalc, BBInfo &FalseBBICalc) const;
245 bool ValidForkedDiamond(BBInfo &TrueBBI, BBInfo &FalseBBI,
247 BBInfo &TrueBBICalc, BBInfo &FalseBBICalc) const;
248 void AnalyzeBranches(BBInfo &BBI);
249 void ScanInstructions(BBInfo &BBI,
256 BBInfo &TrueBBI, BBInfo &FalseBBI) const;
259 bool FeasibilityAnalysis(BBInfo &BBI, SmallVectorImpl<MachineOperand> &Pred,
265 bool IfConvertSimple(BBInfo &BBI, IfcvtKind Kind);
266 bool IfConvertTriangle(BBInfo &BBI, IfcvtKind Kind);
267 bool IfConvertDiamondCommon(BBInfo &BBI, BBInfo &TrueBBI, BBInfo &FalseBBI,
271 bool IfConvertDiamond(BBInfo &BBI, IfcvtKind Kind,
274 bool IfConvertForkedDiamond(BBInfo &BBI, IfcvtKind Kind,
277 void PredicateBlock(BBInfo &BBI,
281 void CopyAndPredicateBlock(BBInfo &ToBBI, BBInfo &FromBBI,
284 void MergeBlocks(BBInfo &ToBBI, BBInfo &FromBBI, bool AddEdges = true);
293 bool MeetIfcvtSizeLimit(BBInfo &TBBInfo, BBInfo &FBBInfo, in MeetIfcvtSizeLimit()
403 bool blockAlwaysFallThrough(BBInfo &BBI) const { in blockAlwaysFallThrough()
493 BBInfo &BBI = Token->BBI; in INITIALIZE_PASS_DEPENDENCY()
624 bool IfConverter::reverseBranchCondition(BBInfo &BBI) const { in reverseBranchCondition()
648 bool IfConverter::ValidSimple(BBInfo &TrueBBI, unsigned &Dups, in ValidSimple()
673 bool IfConverter::ValidTriangle(BBInfo &TrueBBI, BBInfo &FalseBBI, in ValidTriangle()
818 BBInfo &TrueBBI, BBInfo &FalseBBI) const { in RescanInstructions()
880 BBInfo &TrueBBI, BBInfo &FalseBBI, in ValidForkedDiamond()
882 BBInfo &TrueBBICalc, BBInfo &FalseBBICalc) const { in ValidForkedDiamond()
962 BBInfo &TrueBBI, BBInfo &FalseBBI, in ValidDiamond()
964 BBInfo &TrueBBICalc, BBInfo &FalseBBICalc) const { in ValidDiamond()
1024 void IfConverter::AnalyzeBranches(BBInfo &BBI) { in AnalyzeBranches()
1060 void IfConverter::ScanInstructions(BBInfo &BBI, in ScanInstructions()
1168 bool IfConverter::FeasibilityAnalysis(BBInfo &BBI, in FeasibilityAnalysis()
1227 BBInfo &BBI = BBAnalysis[BB->getNumber()]; in AnalyzeBlock()
1275 BBInfo &TrueBBI = BBAnalysis[BBI.TrueBB->getNumber()]; in AnalyzeBlock()
1276 BBInfo &FalseBBI = BBAnalysis[BBI.FalseBB->getNumber()]; in AnalyzeBlock()
1298 BBInfo TrueBBICalc, FalseBBICalc; in AnalyzeBlock()
1463 BBInfo &PBBI = BBAnalysis[Predecessor->getNumber()]; in InvalidatePreds()
1534 bool IfConverter::IfConvertSimple(BBInfo &BBI, IfcvtKind Kind) { in IfConvertSimple()
1535 BBInfo &TrueBBI = BBAnalysis[BBI.TrueBB->getNumber()]; in IfConvertSimple()
1536 BBInfo &FalseBBI = BBAnalysis[BBI.FalseBB->getNumber()]; in IfConvertSimple()
1537 BBInfo *CvtBBI = &TrueBBI; in IfConvertSimple()
1538 BBInfo *NextBBI = &FalseBBI; in IfConvertSimple()
1619 bool IfConverter::IfConvertTriangle(BBInfo &BBI, IfcvtKind Kind) { in IfConvertTriangle()
1620 BBInfo &TrueBBI = BBAnalysis[BBI.TrueBB->getNumber()]; in IfConvertTriangle()
1621 BBInfo &FalseBBI = BBAnalysis[BBI.FalseBB->getNumber()]; in IfConvertTriangle()
1622 BBInfo *CvtBBI = &TrueBBI; in IfConvertTriangle()
1623 BBInfo *NextBBI = &FalseBBI; in IfConvertTriangle()
1655 BBInfo &PBBI = BBAnalysis[PBB->getNumber()]; in IfConvertTriangle()
1774 BBInfo &BBI, BBInfo &TrueBBI, BBInfo &FalseBBI, in IfConvertDiamondCommon()
1795 BBInfo *BBI1 = &TrueBBI; in IfConvertDiamondCommon()
1796 BBInfo *BBI2 = &FalseBBI; in IfConvertDiamondCommon()
2010 BBInfo &BBI, IfcvtKind Kind, in IfConvertForkedDiamond()
2013 BBInfo &TrueBBI = BBAnalysis[BBI.TrueBB->getNumber()]; in IfConvertForkedDiamond()
2014 BBInfo &FalseBBI = BBAnalysis[BBI.FalseBB->getNumber()]; in IfConvertForkedDiamond()
2045 bool IfConverter::IfConvertDiamond(BBInfo &BBI, IfcvtKind Kind, in IfConvertDiamond()
2048 BBInfo &TrueBBI = BBAnalysis[BBI.TrueBB->getNumber()]; in IfConvertDiamond()
2049 BBInfo &FalseBBI = BBAnalysis[BBI.FalseBB->getNumber()]; in IfConvertDiamond()
2077 BBInfo &TailBBI = BBAnalysis[TailBB->getNumber()]; in IfConvertDiamond()
2135 void IfConverter::PredicateBlock(BBInfo &BBI, in PredicateBlock()
2178 void IfConverter::CopyAndPredicateBlock(BBInfo &ToBBI, BBInfo &FromBBI, in CopyAndPredicateBlock()
2244 void IfConverter::MergeBlocks(BBInfo &ToBBI, BBInfo &FromBBI, bool AddEdges) { in MergeBlocks()