Lines Matching refs:DefX
239 Value *Var, Instruction *DefX,
1524 static PHINode *getRecurrenceVar(Value *VarX, Instruction *DefX, in getRecurrenceVar() argument
1528 (PhiX->getOperand(0) == DefX || PhiX->getOperand(1) == DefX)) in getRecurrenceVar()
1693 Instruction *&DefX) { in detectShiftUntilZeroIdiom() argument
1697 DefX = nullptr; in detectShiftUntilZeroIdiom()
1705 DefX = dyn_cast<Instruction>(T); in detectShiftUntilZeroIdiom()
1710 if (!DefX || !DefX->isShift()) in detectShiftUntilZeroIdiom()
1712 IntrinID = DefX->getOpcode() == Instruction::Shl ? Intrinsic::cttz : in detectShiftUntilZeroIdiom()
1714 ConstantInt *Shft = dyn_cast<ConstantInt>(DefX->getOperand(1)); in detectShiftUntilZeroIdiom()
1717 VarX = DefX->getOperand(0); in detectShiftUntilZeroIdiom()
1720 PHINode *PhiX = getRecurrenceVar(VarX, DefX, LoopEntry); in detectShiftUntilZeroIdiom()
1728 if (DefX->getOpcode() == Instruction::AShr && !isKnownNonNegative(InitX, DL)) in detectShiftUntilZeroIdiom()
1771 Instruction *DefX = nullptr; in recognizeAndInsertFFS() local
1779 CntInst, CntPhi, DefX)) in recognizeAndInsertFFS()
1849 transformLoopToCountable(IntrinID, PH, CntInst, CntPhi, InitX, DefX, in recognizeAndInsertFFS()
1850 DefX->getDebugLoc(), ZeroCheck, in recognizeAndInsertFFS()
1965 PHINode *CntPhi, Value *InitX, Instruction *DefX, const DebugLoc &DL, in transformLoopToCountable() argument
1981 if (DefX->getOpcode() == Instruction::AShr) in transformLoopToCountable()
1983 else if (DefX->getOpcode() == Instruction::LShr) in transformLoopToCountable()
1985 else if (DefX->getOpcode() == Instruction::Shl) // cttz in transformLoopToCountable()