Searched refs:AndC (Results 1 – 9 of 9) sorted by relevance
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSimplifyDemanded.cpp | 330 Constant *AndC = Constant::getIntegerValue(VTy, in SimplifyDemandedUseBits() local 332 Instruction *And = BinaryOperator::CreateAnd(I->getOperand(0), AndC); in SimplifyDemandedUseBits() 363 Constant *AndC = ConstantInt::get(VTy, NewMask & AndRHS->getValue()); in SimplifyDemandedUseBits() local 364 Instruction *NewAnd = BinaryOperator::CreateAnd(I->getOperand(0), AndC); in SimplifyDemandedUseBits()
|
| H A D | InstCombineAddSub.cpp | 2574 const APInt *AddC, *AndC; in visitSub() local 2576 match(Op1, m_And(m_Specific(X), m_APInt(AndC)))) { in visitSub() 2579 if ((HighMask & *AndC).isZero()) in visitSub() 2580 return BinaryOperator::CreateAnd(Op0, ConstantInt::get(Ty, ~(*AndC))); in visitSub()
|
| H A D | InstCombineAndOrXor.cpp | 3276 const APInt *AndC, *SmallC = nullptr, *BigC = nullptr; in foldAndOrOfICmps() local 3281 match(LHS0, m_And(m_Specific(V), m_APInt(AndC)))) { in foldAndOrOfICmps() 3285 match(RHS0, m_And(m_Specific(V), m_APInt(AndC)))) { in foldAndOrOfICmps() 3296 if ((Low & *AndC).isZero() && (Low & *BigC).isZero()) { in foldAndOrOfICmps() 3297 Value *NewAnd = Builder.CreateAnd(V, Low | *AndC); in foldAndOrOfICmps()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | CodeGenPrepare.cpp | 6770 auto *AndC = dyn_cast<ConstantInt>(I->getOperand(1)); in optimizeLoadExt() local 6771 if (!AndC) in optimizeLoadExt() 6773 APInt AndBits = AndC->getValue(); in optimizeLoadExt()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | DAGCombiner.cpp | 741 bool isAndLoadExtLoad(ConstantSDNode *AndC, LoadSDNode *LoadN, 6413 bool DAGCombiner::isAndLoadExtLoad(ConstantSDNode *AndC, LoadSDNode *LoadN, in isAndLoadExtLoad() argument 6415 if (!AndC->getAPIntValue().isMask()) in isAndLoadExtLoad() 6418 unsigned ActiveBits = AndC->getAPIntValue().countr_one(); in isAndLoadExtLoad() 13778 auto *AndC = cast<ConstantSDNode>(N0.getOperand(1)); in visitZERO_EXTEND() local 13779 EVT LoadResultTy = AndC->getValueType(0); in visitZERO_EXTEND() 13781 if (isAndLoadExtLoad(AndC, LN00, LoadResultTy, ExtVT)) in visitZERO_EXTEND() 14231 auto AndC = dyn_cast<ConstantSDNode>(N->getOperand(1)); in reduceLoadWidth() local 14232 if (!AndC) in reduceLoadWidth() 14235 const APInt &Mask = AndC->getAPIntValue(); in reduceLoadWidth()
|
| H A D | TargetLowering.cpp | 3942 auto *AndC = dyn_cast<ConstantSDNode>(N0.getOperand(1)); in foldSetCCWithAnd() local 3943 if (AndC && isNullConstant(N1) && AndC->getAPIntValue().isPowerOf2() && in foldSetCCWithAnd() 3946 AndC->getAPIntValue().getActiveBits()); in foldSetCCWithAnd()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.cpp | 30238 const APInt *AndC; in FindSingleBitChange() local 30239 if (match(BitV, m_c_And(m_Value(AndOp), m_APInt(AndC)))) { in FindSingleBitChange() 30241 if (*AndC == (I->getType()->getPrimitiveSizeInBits() - 1)) in FindSingleBitChange() 47115 auto *AndC = dyn_cast<ConstantSDNode>(N0.getOperand(1)); in combineShiftRightLogical() local 47116 if (!ShiftC || !AndC) in combineShiftRightLogical() 47122 APInt MaskVal = AndC->getAPIntValue(); in combineShiftRightLogical() 48612 const APInt &AndC = N1C->getAPIntValue(); in combineAnd() local 48614 if (MulC.uge(AndC) && !MulC.isPowerOf2() && in combineAnd()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMISelLowering.cpp | 18092 const APInt *AndC = isPowerOf2Constant(And->getOperand(1)); in PerformCMOVToBFICombine() local 18093 if (!AndC) in PerformCMOVToBFICombine() 18132 unsigned BitInX = AndC->logBase2(); in PerformCMOVToBFICombine()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64ISelLowering.cpp | 22088 ConstantSDNode *AndC = dyn_cast<ConstantSDNode>(AndNode->getOperand(1)); in performSubsToAndsCombine() local 22089 if (!AndC) in performSubsToAndsCombine() 22095 APInt AndSMask = (~MaskAP) & AndC->getAPIntValue(); in performSubsToAndsCombine()
|