Lines Matching refs:CntInst

232   void transformLoopToPopcount(BasicBlock *PreCondBB, Instruction *CntInst,
238 Instruction *CntInst);
242 Instruction *CntInst, PHINode *CntPhi,
1596 Value *&InitX, Instruction *&CntInst, in detectShiftUntilLessThanIdiom() argument
1602 CntInst = nullptr; in detectShiftUntilLessThanIdiom()
1658 CntInst = &Inst; in detectShiftUntilLessThanIdiom()
1662 if (!CntInst) in detectShiftUntilLessThanIdiom()
1693 Instruction *&CntInst, PHINode *&CntPhi, in detectPopcountIdiom() argument
1790 CntInst = CountInst; in detectPopcountIdiom()
1827 Instruction *&CntInst, PHINode *&CntPhi, in detectShiftUntilZeroIdiom() argument
1833 CntInst = nullptr; in detectShiftUntilZeroIdiom()
1886 CntInst = &Inst; in detectShiftUntilZeroIdiom()
1890 if (!CntInst) in detectShiftUntilZeroIdiom()
1924 Instruction *CntInst) { in insertFFSIfProfitable() argument
1932 for (User *U : CntInst->users()) in insertFFSIfProfitable()
1977 transformLoopToCountable(IntrinID, PH, CntInst, CntPhi, InitX, DefX, in insertFFSIfProfitable()
1995 Instruction *CntInst = nullptr; in recognizeAndInsertFFS() local
1997 if (!detectShiftUntilZeroIdiom(CurLoop, *DL, IntrinID, InitX, CntInst, CntPhi, in recognizeAndInsertFFS()
2001 return insertFFSIfProfitable(IntrinID, InitX, DefX, CntPhi, CntInst); in recognizeAndInsertFFS()
2013 Instruction *CntInst = nullptr; in recognizeShiftUntilLessThan() local
2016 if (!detectShiftUntilLessThanIdiom(CurLoop, *DL, IntrinID, InitX, CntInst, in recognizeShiftUntilLessThan()
2022 return insertFFSIfProfitable(IntrinID, InitX, DefX, CntPhi, CntInst); in recognizeShiftUntilLessThan()
2063 transformLoopToCountable(IntrinID, PH, CntInst, CntPhi, InitX, DefX, in recognizeShiftUntilLessThan()
2110 Instruction *CntInst; in recognizePopcount() local
2113 if (!detectPopcountIdiom(CurLoop, PreCondBB, CntInst, CntPhi, Val)) in recognizePopcount()
2116 transformLoopToPopcount(PreCondBB, CntInst, CntPhi, Val); in recognizePopcount()
2179 Intrinsic::ID IntrinID, BasicBlock *Preheader, Instruction *CntInst, in transformLoopToCountable() argument
2217 NewCount = Builder.CreateZExtOrTrunc(NewCount, CntInst->getType()); in transformLoopToCountable()
2220 if (cast<ConstantInt>(CntInst->getOperand(1))->isOne()) { in transformLoopToCountable()
2265 CntInst->replaceUsesOutsideBlock(NewCount, Body); in transformLoopToCountable()
2273 Instruction *CntInst, in transformLoopToPopcount() argument
2277 const DebugLoc &DL = CntInst->getDebugLoc(); in transformLoopToPopcount()
2372 CntInst->replaceUsesOutsideBlock(NewCount, Body); in transformLoopToPopcount()