Lines Matching refs:CntInst
243 void transformLoopToPopcount(BasicBlock *PreCondBB, Instruction *CntInst,
247 Instruction *CntInst, PHINode *CntPhi,
1641 Instruction *&CntInst, PHINode *&CntPhi, in detectPopcountIdiom() argument
1738 CntInst = CountInst; in detectPopcountIdiom()
1775 Instruction *&CntInst, PHINode *&CntPhi, in detectShiftUntilZeroIdiom() argument
1781 CntInst = nullptr; in detectShiftUntilZeroIdiom()
1834 CntInst = &Inst; in detectShiftUntilZeroIdiom()
1838 if (!CntInst) in detectShiftUntilZeroIdiom()
1856 Instruction *CntInst = nullptr; in recognizeAndInsertFFS() local
1862 CntInst, CntPhi, DefX)) in recognizeAndInsertFFS()
1872 for (User *U : CntInst->users()) in recognizeAndInsertFFS()
1932 transformLoopToCountable(IntrinID, PH, CntInst, CntPhi, InitX, DefX, in recognizeAndInsertFFS()
1978 Instruction *CntInst; in recognizePopcount() local
1981 if (!detectPopcountIdiom(CurLoop, PreCondBB, CntInst, CntPhi, Val)) in recognizePopcount()
1984 transformLoopToPopcount(PreCondBB, CntInst, CntPhi, Val); in recognizePopcount()
2047 Intrinsic::ID IntrinID, BasicBlock *Preheader, Instruction *CntInst, in transformLoopToCountable() argument
2083 NewCount = Builder.CreateZExtOrTrunc(NewCount, CntInst->getType()); in transformLoopToCountable()
2086 if (cast<ConstantInt>(CntInst->getOperand(1))->isOne()) { in transformLoopToCountable()
2130 CntInst->replaceUsesOutsideBlock(NewCount, Body); in transformLoopToCountable()
2138 Instruction *CntInst, in transformLoopToPopcount() argument
2142 const DebugLoc &DL = CntInst->getDebugLoc(); in transformLoopToPopcount()
2236 CntInst->replaceUsesOutsideBlock(NewCount, Body); in transformLoopToPopcount()