Searched refs:AndC (Results 1 – 9 of 9) sorted by relevance
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineSimplifyDemanded.cpp | 325 Constant *AndC = Constant::getIntegerValue(VTy, in SimplifyDemandedUseBits() local 327 Instruction *And = BinaryOperator::CreateAnd(I->getOperand(0), AndC); in SimplifyDemandedUseBits() 358 Constant *AndC = ConstantInt::get(VTy, NewMask & AndRHS->getValue()); in SimplifyDemandedUseBits() local 359 Instruction *NewAnd = BinaryOperator::CreateAnd(I->getOperand(0), AndC); in SimplifyDemandedUseBits()
|
H A D | InstCombineAddSub.cpp | 2585 const APInt *AddC, *AndC; in visitSub() local 2587 match(Op1, m_And(m_Specific(X), m_APInt(AndC)))) { in visitSub() 2590 if ((HighMask & *AndC).isZero()) in visitSub() 2591 return BinaryOperator::CreateAnd(Op0, ConstantInt::get(Ty, ~(*AndC))); in visitSub()
|
H A D | InstCombineAndOrXor.cpp | 3412 const APInt *AndC, *SmallC = nullptr, *BigC = nullptr; in foldAndOrOfICmps() local 3417 match(LHS0, m_And(m_Specific(V), m_APInt(AndC)))) { in foldAndOrOfICmps() 3421 match(RHS0, m_And(m_Specific(V), m_APInt(AndC)))) { in foldAndOrOfICmps() 3432 if ((Low & *AndC).isZero() && (Low & *BigC).isZero()) { in foldAndOrOfICmps() 3433 Value *NewAnd = Builder.CreateAnd(V, Low | *AndC); in foldAndOrOfICmps()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | CodeGenPrepare.cpp | 6884 auto *AndC = dyn_cast<ConstantInt>(I->getOperand(1)); in optimizeLoadExt() local 6885 if (!AndC) in optimizeLoadExt() 6887 APInt AndBits = AndC->getValue(); in optimizeLoadExt()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | DAGCombiner.cpp | 748 bool isAndLoadExtLoad(ConstantSDNode *AndC, LoadSDNode *LoadN, 6417 bool DAGCombiner::isAndLoadExtLoad(ConstantSDNode *AndC, LoadSDNode *LoadN, in isAndLoadExtLoad() argument 6419 if (!AndC->getAPIntValue().isMask()) in isAndLoadExtLoad() 6422 unsigned ActiveBits = AndC->getAPIntValue().countr_one(); in isAndLoadExtLoad() 14011 auto *AndC = cast<ConstantSDNode>(N0.getOperand(1)); in visitZERO_EXTEND() local 14012 EVT LoadResultTy = AndC->getValueType(0); in visitZERO_EXTEND() 14014 if (isAndLoadExtLoad(AndC, LN00, LoadResultTy, ExtVT)) in visitZERO_EXTEND() 14480 auto AndC = dyn_cast<ConstantSDNode>(N->getOperand(1)); in reduceLoadWidth() local 14481 if (!AndC) in reduceLoadWidth() 14484 const APInt &Mask = AndC->getAPIntValue(); in reduceLoadWidth()
|
H A D | TargetLowering.cpp | 4006 auto *AndC = dyn_cast<ConstantSDNode>(N0.getOperand(1)); in foldSetCCWithAnd() local 4007 if (AndC && isNullConstant(N1) && AndC->getAPIntValue().isPowerOf2() && in foldSetCCWithAnd() 4010 AndC->getAPIntValue().getActiveBits()); in foldSetCCWithAnd()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMISelLowering.cpp | 18115 const APInt *AndC = isPowerOf2Constant(And->getOperand(1)); in PerformCMOVToBFICombine() local 18116 if (!AndC) in PerformCMOVToBFICombine() 18155 unsigned BitInX = AndC->logBase2(); in PerformCMOVToBFICombine()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86ISelLowering.cpp | 30580 const APInt *AndC; in FindSingleBitChange() local 30581 if (match(BitV, m_c_And(m_Value(AndOp), m_APInt(AndC)))) { in FindSingleBitChange() 30583 if (*AndC == (I->getType()->getPrimitiveSizeInBits() - 1)) in FindSingleBitChange() 48284 auto *AndC = dyn_cast<ConstantSDNode>(N0.getOperand(1)); in combineShiftRightLogical() local 48285 if (!ShiftC || !AndC) in combineShiftRightLogical() 48291 APInt MaskVal = AndC->getAPIntValue(); in combineShiftRightLogical() 49919 const APInt &AndC = N1C->getAPIntValue(); in combineAnd() local 49921 if (MulC.uge(AndC) && !MulC.isPowerOf2() && in combineAnd()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64ISelLowering.cpp | 23522 ConstantSDNode *AndC = dyn_cast<ConstantSDNode>(AndNode->getOperand(1)); in performSubsToAndsCombine() local 23523 if (!AndC) in performSubsToAndsCombine() 23529 APInt AndSMask = (~MaskAP) & AndC->getAPIntValue(); in performSubsToAndsCombine()
|