Lines Matching defs:CntPhi
233 PHINode *CntPhi, Value *Var);
237 Instruction *DefX, PHINode *CntPhi,
242 Instruction *CntInst, PHINode *CntPhi,
1572 /// 2) \p CntPhi is set to the corresponding phi node
1597 PHINode *&CntPhi, Instruction *&DefX,
1603 CntPhi = nullptr;
1659 CntPhi = Phi;
1672 /// 2) \p CntPhi is set to the corresponding phi node.
1693 Instruction *&CntInst, PHINode *&CntPhi,
1791 CntPhi = CountPhi;
1803 /// 2) \p CntPhi is set to the corresponding phi node
1827 Instruction *&CntInst, PHINode *&CntPhi,
1834 CntPhi = nullptr;
1887 CntPhi = Phi;
1923 PHINode *CntPhi,
1926 for (User *U : CntPhi->users())
1937 // If both CntInst and CntPhi are used outside the loop the profitability
1977 transformLoopToCountable(IntrinID, PH, CntInst, CntPhi, InitX, DefX,
1994 PHINode *CntPhi = nullptr;
1997 if (!detectShiftUntilZeroIdiom(CurLoop, *DL, IntrinID, InitX, CntInst, CntPhi,
2001 return insertFFSIfProfitable(IntrinID, InitX, DefX, CntPhi, CntInst);
2012 PHINode *CntPhi = nullptr;
2017 CntPhi, DefX, LoopThreshold))
2022 return insertFFSIfProfitable(IntrinID, InitX, DefX, CntPhi, CntInst);
2029 // Abort if CntPhi is used outside of the loop.
2030 for (User *U : CntPhi->users())
2063 transformLoopToCountable(IntrinID, PH, CntInst, CntPhi, InitX, DefX,
2111 PHINode *CntPhi;
2113 if (!detectPopcountIdiom(CurLoop, PreCondBB, CntInst, CntPhi, Val))
2116 transformLoopToPopcount(PreCondBB, CntInst, CntPhi, Val);
2149 /// CntPhi = PHI [Cnt0, CntInst]
2151 /// CntInst = CntPhi + 1
2155 /// Use(CntPhi) or Use(CntInst)
2158 /// If CntPhi used outside the loop:
2164 /// CntPhi = PHI [Cnt0, CntInst]
2167 /// CntInst = CntPhi + 1
2172 /// Use(CountPrev + Cnt0) // Use(CntPhi)
2180 PHINode *CntPhi, Value *InitX, Instruction *DefX, const DebugLoc &DL,
2188 // If there are no uses of CntPhi crate:
2191 // If there are uses of CntPhi create:
2219 Value *CntInitVal = CntPhi->getIncomingValueForBlock(Preheader);
2263 CntPhi->replaceUsesOutsideBlock(NewCount, Body);
2274 PHINode *CntPhi, Value *Var) {
2289 Builder.CreateZExtOrTrunc(PopCnt, cast<IntegerType>(CntPhi->getType()));
2298 Value *CntInitVal = CntPhi->getIncomingValueForBlock(PreHead);