Lines Matching refs:CntInst
234 void transformLoopToPopcount(BasicBlock *PreCondBB, Instruction *CntInst,
238 Instruction *CntInst, PHINode *CntPhi,
1558 Instruction *&CntInst, PHINode *&CntPhi, in detectPopcountIdiom() argument
1655 CntInst = CountInst; in detectPopcountIdiom()
1692 Instruction *&CntInst, PHINode *&CntPhi, in detectShiftUntilZeroIdiom() argument
1698 CntInst = nullptr; in detectShiftUntilZeroIdiom()
1751 CntInst = &Inst; in detectShiftUntilZeroIdiom()
1755 if (!CntInst) in detectShiftUntilZeroIdiom()
1773 Instruction *CntInst = nullptr; in recognizeAndInsertFFS() local
1779 CntInst, CntPhi, DefX)) in recognizeAndInsertFFS()
1789 for (User *U : CntInst->users()) in recognizeAndInsertFFS()
1849 transformLoopToCountable(IntrinID, PH, CntInst, CntPhi, InitX, DefX, in recognizeAndInsertFFS()
1895 Instruction *CntInst; in recognizePopcount() local
1898 if (!detectPopcountIdiom(CurLoop, PreCondBB, CntInst, CntPhi, Val)) in recognizePopcount()
1901 transformLoopToPopcount(PreCondBB, CntInst, CntPhi, Val); in recognizePopcount()
1964 Intrinsic::ID IntrinID, BasicBlock *Preheader, Instruction *CntInst, in transformLoopToCountable() argument
2000 NewCount = Builder.CreateZExtOrTrunc(NewCount, CntInst->getType()); in transformLoopToCountable()
2003 if (cast<ConstantInt>(CntInst->getOperand(1))->isOne()) { in transformLoopToCountable()
2048 CntInst->replaceUsesOutsideBlock(NewCount, Body); in transformLoopToCountable()
2056 Instruction *CntInst, in transformLoopToPopcount() argument
2060 const DebugLoc &DL = CntInst->getDebugLoc(); in transformLoopToPopcount()
2155 CntInst->replaceUsesOutsideBlock(NewCount, Body); in transformLoopToPopcount()