Home
last modified time | relevance | path

Searched refs:OpInst (Results 1 – 12 of 12) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonVectorLoopCarriedReuse.cpp430 Instruction *OpInst = dyn_cast<Instruction>(Op); in findValueToReuse() local
435 if (!OpInst && !BEOpInst) { in findValueToReuse()
442 if ((OpInst && !BEOpInst) || (!OpInst && BEOpInst)) in findValueToReuse()
445 DepChain *D = getDepChainBtwn(OpInst, BEOpInst, Iters); in findValueToReuse()
449 DepChains[OpInst] = D; in findValueToReuse()
464 Instruction *OpInst = dyn_cast<Instruction>(Op); in findValueToReuse() local
465 if (!OpInst) { in findValueToReuse()
475 DepChain *D = getDepChainBtwn(OpInst, BEOpInst, Iters); in findValueToReuse()
478 DepChains[OpInst] = D; in findValueToReuse()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCodeMoverUtils.cpp357 if (auto *OpInst = dyn_cast<Instruction>(Op)) { in isSafeToMoveBefore() local
358 if (&InsertPoint == OpInst) in isSafeToMoveBefore()
362 if (CheckForEntireBlock && I.getParent() == OpInst->getParent() && in isSafeToMoveBefore()
363 DT.dominates(OpInst, &I)) in isSafeToMoveBefore()
365 if (!DT.dominates(OpInst, &InsertPoint)) in isSafeToMoveBefore()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp564 Instruction *OpInst = dyn_cast<Instruction>(II.getOperand(0)); in hoistLaneIntrinsicThroughOperand() local
569 if (!OpInst || !OpInst->hasOneUser() || OpInst->getParent() != II.getParent()) in hoistLaneIntrinsicThroughOperand()
584 if (!IC.getDominatorTree().dominates(LaneIDInst, OpInst)) in hoistLaneIntrinsicThroughOperand()
594 SmallVector<Value *, 2> Ops{OpInst->getOperand(OpIdx)}; in hoistLaneIntrinsicThroughOperand()
602 Instruction &NewOp = *OpInst->clone(); in hoistLaneIntrinsicThroughOperand()
608 if (IID == Intrinsic::amdgcn_permlane64 && !isa<BitCastInst>(OpInst)) in hoistLaneIntrinsicThroughOperand()
611 if (isa<UnaryOperator>(OpInst)) in hoistLaneIntrinsicThroughOperand()
614 if (isa<CastInst>(OpInst)) { in hoistLaneIntrinsicThroughOperand()
615 Value *Src = OpInst->getOperand(0); in hoistLaneIntrinsicThroughOperand()
626 if (isa<BinaryOperator>(OpInst)) { in hoistLaneIntrinsicThroughOperand()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DPHITransAddr.cpp126 if (Instruction *OpInst = dyn_cast<Instruction>(Op)) in RemoveInstInputs() local
127 RemoveInstInputs(OpInst, InstInputs); in RemoveInstInputs()
H A DScalarEvolution.cpp9569 Instruction *OpInst = dyn_cast<Instruction>(Op); in getConstantEvolvingPHIOperands() local
9570 if (!OpInst || !canConstantEvolve(OpInst, L)) return nullptr; in getConstantEvolvingPHIOperands()
9572 PHINode *P = dyn_cast<PHINode>(OpInst); in getConstantEvolvingPHIOperands()
9577 P = PHIMap.lookup(OpInst); in getConstantEvolvingPHIOperands()
9581 P = getConstantEvolvingPHIOperands(OpInst, L, PHIMap, Depth + 1); in getConstantEvolvingPHIOperands()
9582 PHIMap[OpInst] = P; in getConstantEvolvingPHIOperands()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp1210 if (Instruction *OpInst = dyn_cast<Instruction>(Op)) in isOpDefinedInBlock() local
1211 if (OpInst->getParent() == BB) in isOpDefinedInBlock()
2064 Instruction *OpInst = dyn_cast<Instruction>(Op); in cloneInstructions() local
2065 if (!OpInst) in cloneInstructions()
2068 auto I = ValueMapping.find(OpInst); in cloneInstructions()
2070 OperandsToRemap.insert({OpInst, I->second}); in cloneInstructions()
H A DLoopFuse.cpp1082 if (auto *OpInst = dyn_cast<Instruction>(Op)) { in canHoistInst() local
1083 bool OpHoisted = is_contained(SafeToHoist, OpInst); in canHoistInst()
1086 if (!(OpHoisted || DT.dominates(OpInst, FC0PreheaderTarget))) { in canHoistInst()
H A DReassociate.cpp1974 if (Instruction *OpInst = dyn_cast<Instruction>(Op)) in RecursivelyEraseDeadInsts() local
1975 if (OpInst->use_empty()) in RecursivelyEraseDeadInsts()
1976 Insts.insert(OpInst); in RecursivelyEraseDeadInsts()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp134 if (Instruction* OpInst = dyn_cast<Instruction>(U)) in SimplifyDemandedBits() local
135 salvageDebugInfo(*OpInst); in SimplifyDemandedBits()
2085 if (Instruction *OpInst = dyn_cast<Instruction>(U)) in SimplifyDemandedFPClass() local
2086 salvageDebugInfo(*OpInst); in SimplifyDemandedFPClass()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp769 if (Instruction *OpInst = dyn_cast<Instruction>(Op)) in getDebugLocFromInstOrOperands() local
770 if (OpInst->getDebugLoc() != Empty) in getDebugLocFromInstOrOperands()
771 return OpInst->getDebugLoc(); in getDebugLocFromInstOrOperands()
8096 if (auto *OpInst = dyn_cast<Instruction>(Op)) { in getScaledReductions() local
8097 if (getScaledReductions(PHI, OpInst, Range, Chains)) { in getScaledReductions()
H A DSLPVectorizer.cpp10870 auto *OpInst = cast<Instruction>(Scalars[Idx]); in buildAltOpShuffleMask() local
10871 if (IsAltOp(OpInst)) { in buildAltOpShuffleMask()
10874 AltScalars->push_back(OpInst); in buildAltOpShuffleMask()
10878 OpScalars->push_back(OpInst); in buildAltOpShuffleMask()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DVerifier.cpp5371 } else if (Instruction *OpInst = dyn_cast<Instruction>(I.getOperand(i))) { in visitInstruction() local
5372 Check(OpInst->getFunction() == BB->getParent(), in visitInstruction()