Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp267 Constant *AndC = Constant::getIntegerValue(VTy, in SimplifyDemandedUseBits() local
269 Instruction *And = BinaryOperator::CreateAnd(I->getOperand(0), AndC); in SimplifyDemandedUseBits()
300 Constant *AndC = in SimplifyDemandedUseBits() local
302 Instruction *NewAnd = BinaryOperator::CreateAnd(I->getOperand(0), AndC); in SimplifyDemandedUseBits()
H A DInstCombineAddSub.cpp2116 const APInt *AddC, *AndC; in visitSub() local
2118 match(Op1, m_And(m_Specific(X), m_APInt(AndC)))) { in visitSub()
2122 if ((HighMask & *AndC).isNullValue()) in visitSub()
2123 return BinaryOperator::CreateAnd(Op0, ConstantInt::get(Ty, ~(*AndC))); in visitSub()
H A DInstCombineAndOrXor.cpp1293 ConstantInt *AndC, *SmallC = nullptr, *BigC = nullptr; in foldAndOfICmps() local
1298 match(LHS0, m_And(m_Specific(V), m_ConstantInt(AndC)))) { in foldAndOfICmps()
1302 match(RHS0, m_And(m_Specific(V), m_ConstantInt(AndC)))) { in foldAndOfICmps()
1313 if ((Low & AndC->getValue()).isNullValue() && in foldAndOfICmps()
1315 Value *NewAnd = Builder.CreateAnd(V, Low | AndC->getValue()); in foldAndOfICmps()
1317 Value *NewVal = ConstantInt::get(AndC->getType()->getContext(), N); in foldAndOfICmps()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp6496 auto *AndC = dyn_cast<ConstantInt>(I->getOperand(1)); in optimizeLoadExt() local
6497 if (!AndC) in optimizeLoadExt()
6499 APInt AndBits = AndC->getValue(); in optimizeLoadExt()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp677 bool isAndLoadExtLoad(ConstantSDNode *AndC, LoadSDNode *LoadN,
5221 bool DAGCombiner::isAndLoadExtLoad(ConstantSDNode *AndC, LoadSDNode *LoadN, in isAndLoadExtLoad() argument
5223 if (!AndC->getAPIntValue().isMask()) in isAndLoadExtLoad()
5226 unsigned ActiveBits = AndC->getAPIntValue().countTrailingOnes(); in isAndLoadExtLoad()
11407 auto *AndC = cast<ConstantSDNode>(N0.getOperand(1)); in visitZERO_EXTEND() local
11408 EVT LoadResultTy = AndC->getValueType(0); in visitZERO_EXTEND()
11410 if (isAndLoadExtLoad(AndC, LN00, LoadResultTy, ExtVT)) in visitZERO_EXTEND()
11839 auto AndC = dyn_cast<ConstantSDNode>(N->getOperand(1)); in ReduceLoadWidth() local
11840 if (!AndC) in ReduceLoadWidth()
11843 const APInt &Mask = AndC->getAPIntValue(); in ReduceLoadWidth()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp16896 const APInt *AndC = isPowerOf2Constant(And->getOperand(1)); in PerformCMOVToBFICombine() local
16897 if (!AndC) in PerformCMOVToBFICombine()
16936 unsigned BitInX = AndC->logBase2(); in PerformCMOVToBFICombine()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp43760 auto *AndC = dyn_cast<ConstantSDNode>(N0.getOperand(1)); in combineShiftRightLogical() local
43761 if (!ShiftC || !AndC) in combineShiftRightLogical()
43767 APInt MaskVal = AndC->getAPIntValue(); in combineShiftRightLogical()