Home
last modified time | relevance | path

Searched refs:AndC (Results 1 – 10 of 10) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DCmpInstAnalysis.cpp155 const APInt *AndC; in decomposeBitTestICmp() local
157 if (match(LHS, m_And(m_Value(AndVal), m_APIntAllowPoison(AndC)))) { in decomposeBitTestICmp()
159 Result.Mask = *AndC; in decomposeBitTestICmp()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp332 Constant *AndC = Constant::getIntegerValue(VTy, in SimplifyDemandedUseBits() local
334 Instruction *And = BinaryOperator::CreateAnd(I->getOperand(0), AndC); in SimplifyDemandedUseBits()
365 Constant *AndC = ConstantInt::get(VTy, NewMask & AndRHS->getValue()); in SimplifyDemandedUseBits() local
366 Instruction *NewAnd = BinaryOperator::CreateAnd(I->getOperand(0), AndC); in SimplifyDemandedUseBits()
H A DInstCombineAddSub.cpp2350 Value *AndC = ConstantFoldBinaryInstruction(Instruction::And, C1, C2); in visitSub() local
2351 if (C2->isElementWiseEqual(AndC)) in visitSub()
2763 const APInt *AddC, *AndC; in visitSub() local
2765 match(Op1, m_And(m_Specific(X), m_APInt(AndC)))) { in visitSub()
2768 if ((HighMask & *AndC).isZero()) in visitSub()
2769 return BinaryOperator::CreateAnd(Op0, ConstantInt::get(Ty, ~(*AndC))); in visitSub()
H A DInstCombineAndOrXor.cpp3463 const APInt *AndC, *SmallC = nullptr, *BigC = nullptr; in foldAndOrOfICmps() local
3468 match(LHS0, m_And(m_Specific(V), m_APInt(AndC)))) { in foldAndOrOfICmps()
3472 match(RHS0, m_And(m_Specific(V), m_APInt(AndC)))) { in foldAndOrOfICmps()
3483 if ((Low & *AndC).isZero() && (Low & *BigC).isZero()) { in foldAndOrOfICmps()
3484 Value *NewAnd = Builder.CreateAnd(V, Low | *AndC); in foldAndOrOfICmps()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp7274 auto *AndC = dyn_cast<ConstantInt>(I->getOperand(1)); in optimizeLoadExt() local
7275 if (!AndC) in optimizeLoadExt()
7277 APInt AndBits = AndC->getValue(); in optimizeLoadExt()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp757 bool isAndLoadExtLoad(ConstantSDNode *AndC, LoadSDNode *LoadN,
6802 bool DAGCombiner::isAndLoadExtLoad(ConstantSDNode *AndC, LoadSDNode *LoadN, in isAndLoadExtLoad() argument
6804 if (!AndC->getAPIntValue().isMask()) in isAndLoadExtLoad()
6807 unsigned ActiveBits = AndC->getAPIntValue().countr_one(); in isAndLoadExtLoad()
14882 auto *AndC = cast<ConstantSDNode>(N0.getOperand(1)); in visitZERO_EXTEND() local
14883 EVT LoadResultTy = AndC->getValueType(0); in visitZERO_EXTEND()
14885 if (isAndLoadExtLoad(AndC, LN00, LoadResultTy, ExtVT)) in visitZERO_EXTEND()
15368 auto AndC = dyn_cast<ConstantSDNode>(N->getOperand(1)); in reduceLoadWidth() local
15369 if (!AndC) in reduceLoadWidth()
15372 const APInt &Mask = AndC->getAPIntValue(); in reduceLoadWidth()
H A DTargetLowering.cpp4182 auto *AndC = dyn_cast<ConstantSDNode>(N0.getOperand(1)); in foldSetCCWithAnd() local
4183 if (AndC && isNullConstant(N1) && AndC->getAPIntValue().isPowerOf2() && in foldSetCCWithAnd()
4186 AndC->getAPIntValue().getActiveBits()); in foldSetCCWithAnd()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp18193 const APInt *AndC = isPowerOf2Constant(And->getOperand(1)); in PerformCMOVToBFICombine() local
18194 if (!AndC) in PerformCMOVToBFICombine()
18233 unsigned BitInX = AndC->logBase2(); in PerformCMOVToBFICombine()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp24678 ConstantSDNode *AndC = dyn_cast<ConstantSDNode>(AndNode->getOperand(1)); in performSubsToAndsCombine() local
24679 if (!AndC) in performSubsToAndsCombine()
24685 APInt AndSMask = (~MaskAP) & AndC->getAPIntValue(); in performSubsToAndsCombine()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp50039 auto *AndC = dyn_cast<ConstantSDNode>(N0.getOperand(1)); in combineShiftRightLogical() local
50040 if (!ShiftC || !AndC) in combineShiftRightLogical()
50046 APInt MaskVal = AndC->getAPIntValue(); in combineShiftRightLogical()
51702 const APInt &AndC = N1C->getAPIntValue(); in combineAnd() local
51704 if (MulC.uge(AndC) && !MulC.isPowerOf2() && in combineAnd()