Home
last modified time | relevance | path

Searched refs:CI2 (Results 1 – 6 of 6) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp728 if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) { in ConstantFoldBinaryInstruction() local
736 if (CI2->isZero()) in ConstantFoldBinaryInstruction()
737 return PoisonValue::get(CI2->getType()); // X / 0 == poison in ConstantFoldBinaryInstruction()
741 if (CI2->isOne()) in ConstantFoldBinaryInstruction()
742 return Constant::getNullValue(CI2->getType()); // X % 1 == 0 in ConstantFoldBinaryInstruction()
743 if (CI2->isZero()) in ConstantFoldBinaryInstruction()
744 return PoisonValue::get(CI2->getType()); // X % 0 == poison in ConstantFoldBinaryInstruction()
747 assert(!CI2->isZero() && "And zero handled above"); in ConstantFoldBinaryInstruction()
776 unsigned DstWidth = CI2->getBitWidth(); in ConstantFoldBinaryInstruction()
781 if ((CI2->getValue() & BitsNotSet) == CI2->getValue()) in ConstantFoldBinaryInstruction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLowerSwitch.cpp87 const ConstantInt *CI2 = cast<const ConstantInt>(C2.High); in operator ()() local
88 return CI1->getValue().slt(CI2->getValue()); in operator ()()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp129 const CastInst *CI2) { in isEliminableCastPair() argument
132 Type *DstTy = CI2->getDestTy(); in isEliminableCastPair()
135 Instruction::CastOps secondOp = CI2->getOpcode(); in isEliminableCastPair()
H A DInstCombineInternal.h415 const CastInst *CI2);
H A DInstCombineCompares.cpp1094 ConstantInt *CI2, ConstantInt *CI1, in processUGT_ADDCST_ADD() argument
1108 if (!CI2->getValue().isPowerOf2()) in processUGT_ADDCST_ADD()
1110 unsigned NewWidth = CI2->getValue().countr_zero(); in processUGT_ADDCST_ADD()
1335 ConstantInt *CI, *CI2; // I = icmp ugt (add (add A, B), CI2), CI in foldICmpWithConstant() local
1337 match(Op0, m_Add(m_Add(m_Value(A), m_Value(B)), m_ConstantInt(CI2)))) in foldICmpWithConstant()
1338 if (Instruction *Res = processUGT_ADDCST_ADD(Cmp, A, B, CI2, CI, *this)) in foldICmpWithConstant()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp9338 CallInst *CI2 = dyn_cast<CallInst>(V); in getScalarsVectorizationState() local
9339 if (!CI2 || CI2->getCalledFunction() != F || in getScalarsVectorizationState()
9340 getVectorIntrinsicIDForCall(CI2, TLI) != ID || in getScalarsVectorizationState()
9342 VecFunc != VFDatabase(*CI2).getVectorizedFunction(Shape)) || in getScalarsVectorizationState()
9343 !CI->hasIdenticalOperandBundleSchema(*CI2)) { in getScalarsVectorizationState()
9352 Value *A1J = CI2->getArgOperand(J); in getScalarsVectorizationState()
9365 CI2->op_begin() + CI2->getBundleOperandsStartIndex())) { in getScalarsVectorizationState()
24057 auto *CI2 = cast<CmpInst>(V2); in compareCmp() local
24059 CI2->getOperand(0)->getType()->getTypeID()) in compareCmp()
24062 CI2->getOperand(0)->getType()->getTypeID()) in compareCmp()
[all …]