Lines Matching refs:DefX
248 Value *Var, Instruction *DefX,
1607 static PHINode *getRecurrenceVar(Value *VarX, Instruction *DefX, in getRecurrenceVar() argument
1611 (PhiX->getOperand(0) == DefX || PhiX->getOperand(1) == DefX)) in getRecurrenceVar()
1776 Instruction *&DefX) { in detectShiftUntilZeroIdiom() argument
1780 DefX = nullptr; in detectShiftUntilZeroIdiom()
1788 DefX = dyn_cast<Instruction>(T); in detectShiftUntilZeroIdiom()
1793 if (!DefX || !DefX->isShift()) in detectShiftUntilZeroIdiom()
1795 IntrinID = DefX->getOpcode() == Instruction::Shl ? Intrinsic::cttz : in detectShiftUntilZeroIdiom()
1797 ConstantInt *Shft = dyn_cast<ConstantInt>(DefX->getOperand(1)); in detectShiftUntilZeroIdiom()
1800 VarX = DefX->getOperand(0); in detectShiftUntilZeroIdiom()
1803 PHINode *PhiX = getRecurrenceVar(VarX, DefX, LoopEntry); in detectShiftUntilZeroIdiom()
1811 if (DefX->getOpcode() == Instruction::AShr && !isKnownNonNegative(InitX, DL)) in detectShiftUntilZeroIdiom()
1854 Instruction *DefX = nullptr; in recognizeAndInsertFFS() local
1862 CntInst, CntPhi, DefX)) in recognizeAndInsertFFS()
1932 transformLoopToCountable(IntrinID, PH, CntInst, CntPhi, InitX, DefX, in recognizeAndInsertFFS()
1933 DefX->getDebugLoc(), ZeroCheck, in recognizeAndInsertFFS()
2048 PHINode *CntPhi, Value *InitX, Instruction *DefX, const DebugLoc &DL, in transformLoopToCountable() argument
2064 if (DefX->getOpcode() == Instruction::AShr) in transformLoopToCountable()
2066 else if (DefX->getOpcode() == Instruction::LShr) in transformLoopToCountable()
2068 else if (DefX->getOpcode() == Instruction::Shl) // cttz in transformLoopToCountable()