Lines Matching refs:DefX
237 Instruction *DefX, PHINode *CntPhi,
243 Value *Var, Instruction *DefX,
1558 static PHINode *getRecurrenceVar(Value *VarX, Instruction *DefX, in getRecurrenceVar() argument
1562 (PhiX->getOperand(0) == DefX || PhiX->getOperand(1) == DefX)) in getRecurrenceVar()
1597 PHINode *&CntPhi, Instruction *&DefX, in detectShiftUntilLessThanIdiom() argument
1601 DefX = nullptr; in detectShiftUntilLessThanIdiom()
1610 DefX = dyn_cast<Instruction>(T); in detectShiftUntilLessThanIdiom()
1615 if (!DefX || !isa<PHINode>(DefX)) in detectShiftUntilLessThanIdiom()
1618 PHINode *VarPhi = cast<PHINode>(DefX); in detectShiftUntilLessThanIdiom()
1623 DefX = dyn_cast<Instruction>(VarPhi->getIncomingValue(Idx)); in detectShiftUntilLessThanIdiom()
1624 if (!DefX || DefX->getNumOperands() == 0 || DefX->getOperand(0) != VarPhi) in detectShiftUntilLessThanIdiom()
1628 if (DefX->getOpcode() != Instruction::LShr) in detectShiftUntilLessThanIdiom()
1632 ConstantInt *Shft = dyn_cast<ConstantInt>(DefX->getOperand(1)); in detectShiftUntilLessThanIdiom()
1828 Instruction *&DefX) { in detectShiftUntilZeroIdiom() argument
1832 DefX = nullptr; in detectShiftUntilZeroIdiom()
1840 DefX = dyn_cast<Instruction>(T); in detectShiftUntilZeroIdiom()
1845 if (!DefX || !DefX->isShift()) in detectShiftUntilZeroIdiom()
1847 IntrinID = DefX->getOpcode() == Instruction::Shl ? Intrinsic::cttz : in detectShiftUntilZeroIdiom()
1849 ConstantInt *Shft = dyn_cast<ConstantInt>(DefX->getOperand(1)); in detectShiftUntilZeroIdiom()
1852 VarX = DefX->getOperand(0); in detectShiftUntilZeroIdiom()
1855 PHINode *PhiX = getRecurrenceVar(VarX, DefX, LoopEntry); in detectShiftUntilZeroIdiom()
1863 if (DefX->getOpcode() == Instruction::AShr && !isKnownNonNegative(InitX, DL)) in detectShiftUntilZeroIdiom()
1922 Value *InitX, Instruction *DefX, in insertFFSIfProfitable() argument
1977 transformLoopToCountable(IntrinID, PH, CntInst, CntPhi, InitX, DefX, in insertFFSIfProfitable()
1978 DefX->getDebugLoc(), ZeroCheck, in insertFFSIfProfitable()
1993 Instruction *DefX = nullptr; in recognizeAndInsertFFS() local
1998 DefX)) in recognizeAndInsertFFS()
2001 return insertFFSIfProfitable(IntrinID, InitX, DefX, CntPhi, CntInst); in recognizeAndInsertFFS()
2011 Instruction *DefX = nullptr; in recognizeShiftUntilLessThan() local
2017 CntPhi, DefX, LoopThreshold)) in recognizeShiftUntilLessThan()
2022 return insertFFSIfProfitable(IntrinID, InitX, DefX, CntPhi, CntInst); in recognizeShiftUntilLessThan()
2063 transformLoopToCountable(IntrinID, PH, CntInst, CntPhi, InitX, DefX, in recognizeShiftUntilLessThan()
2064 DefX->getDebugLoc(), ZeroCheck, in recognizeShiftUntilLessThan()
2180 PHINode *CntPhi, Value *InitX, Instruction *DefX, const DebugLoc &DL, in transformLoopToCountable() argument
2196 if (DefX->getOpcode() == Instruction::AShr) in transformLoopToCountable()
2198 else if (DefX->getOpcode() == Instruction::LShr) in transformLoopToCountable()
2200 else if (DefX->getOpcode() == Instruction::Shl) // cttz in transformLoopToCountable()