Lines Matching refs:DefX
193 Value *Var, Instruction *DefX,
1149 static PHINode *getRecurrenceVar(Value *VarX, Instruction *DefX, in getRecurrenceVar() argument
1153 (PhiX->getOperand(0) == DefX || PhiX->getOperand(1) == DefX)) in getRecurrenceVar()
1320 Instruction *&DefX) { in detectShiftUntilZeroIdiom() argument
1324 DefX = nullptr; in detectShiftUntilZeroIdiom()
1332 DefX = dyn_cast<Instruction>(T); in detectShiftUntilZeroIdiom()
1337 if (!DefX || !DefX->isShift()) in detectShiftUntilZeroIdiom()
1339 IntrinID = DefX->getOpcode() == Instruction::Shl ? Intrinsic::cttz : in detectShiftUntilZeroIdiom()
1341 ConstantInt *Shft = dyn_cast<ConstantInt>(DefX->getOperand(1)); in detectShiftUntilZeroIdiom()
1344 VarX = DefX->getOperand(0); in detectShiftUntilZeroIdiom()
1347 PHINode *PhiX = getRecurrenceVar(VarX, DefX, LoopEntry); in detectShiftUntilZeroIdiom()
1355 if (DefX->getOpcode() == Instruction::AShr && !isKnownNonNegative(InitX, DL)) in detectShiftUntilZeroIdiom()
1399 Instruction *DefX = nullptr; in recognizeAndInsertFFS() local
1407 CntInst, CntPhi, DefX)) in recognizeAndInsertFFS()
1470 transformLoopToCountable(IntrinID, PH, CntInst, CntPhi, InitX, DefX, in recognizeAndInsertFFS()
1471 DefX->getDebugLoc(), ZeroCheck, in recognizeAndInsertFFS()
1586 PHINode *CntPhi, Value *InitX, Instruction *DefX, const DebugLoc &DL, in transformLoopToCountable() argument
1599 if (DefX->getOpcode() == Instruction::AShr) in transformLoopToCountable()
1602 else if (DefX->getOpcode() == Instruction::LShr) in transformLoopToCountable()
1605 else if (DefX->getOpcode() == Instruction::Shl) // cttz in transformLoopToCountable()