Home
last modified time | relevance | path

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

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp326 Constant *AndC = Constant::getIntegerValue(VTy, in SimplifyDemandedUseBits() local
328 Instruction *And = BinaryOperator::CreateAnd(I->getOperand(0), AndC); in SimplifyDemandedUseBits()
351 Constant *AndC = in SimplifyDemandedUseBits() local
353 Instruction *NewAnd = BinaryOperator::CreateAnd(I->getOperand(0), AndC); in SimplifyDemandedUseBits()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp366 Constant *AndC = Constant::getIntegerValue(VTy, in SimplifyDemandedUseBits() local
368 Instruction *And = BinaryOperator::CreateAnd(I->getOperand(0), AndC); in SimplifyDemandedUseBits()
391 Constant *AndC = in SimplifyDemandedUseBits() local
393 Instruction *NewAnd = BinaryOperator::CreateAnd(I->getOperand(0), AndC); in SimplifyDemandedUseBits()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp276 Constant *AndC = Constant::getIntegerValue(VTy, in SimplifyDemandedUseBits() local
278 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()
DInstCombineAndOrXor.cpp964 ConstantInt *AndC, *SmallC = nullptr, *BigC = nullptr; in foldAndOfICmps() local
969 match(LHS0, m_And(m_Specific(V), m_ConstantInt(AndC)))) { in foldAndOfICmps()
973 match(RHS0, m_And(m_Specific(V), m_ConstantInt(AndC)))) { in foldAndOfICmps()
984 if ((Low & AndC->getValue()).isNullValue() && in foldAndOfICmps()
986 Value *NewAnd = Builder.CreateAnd(V, Low | AndC->getValue()); in foldAndOfICmps()
988 Value *NewVal = ConstantInt::get(AndC->getType()->getContext(), N); in foldAndOfICmps()
/external/llvm/lib/CodeGen/
DCodeGenPrepare.cpp4449 auto *AndC = dyn_cast<ConstantInt>(I->getOperand(1)); in optimizeLoadExt() local
4450 if (!AndC) in optimizeLoadExt()
4452 APInt AndBits = AndC->getValue(); in optimizeLoadExt()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DCodeGenPrepare.cpp5431 auto *AndC = dyn_cast<ConstantInt>(I->getOperand(1)); in optimizeLoadExt() local
5432 if (!AndC) in optimizeLoadExt()
5434 APInt AndBits = AndC->getValue(); in optimizeLoadExt()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp509 bool isAndLoadExtLoad(ConstantSDNode *AndC, LoadSDNode *LoadN,
4039 bool DAGCombiner::isAndLoadExtLoad(ConstantSDNode *AndC, LoadSDNode *LoadN, in isAndLoadExtLoad() argument
4041 if (!AndC->getAPIntValue().isMask()) in isAndLoadExtLoad()
4044 unsigned ActiveBits = AndC->getAPIntValue().countTrailingOnes(); in isAndLoadExtLoad()
8719 auto *AndC = cast<ConstantSDNode>(N0.getOperand(1)); in visitZERO_EXTEND() local
8720 EVT LoadResultTy = AndC->getValueType(0); in visitZERO_EXTEND()
8722 if (isAndLoadExtLoad(AndC, LN00, LoadResultTy, ExtVT)) in visitZERO_EXTEND()
9075 auto AndC = dyn_cast<ConstantSDNode>(N->getOperand(1)); in ReduceLoadWidth() local
9076 if (!AndC || !AndC->getAPIntValue().isMask()) in ReduceLoadWidth()
9079 unsigned ActiveBits = AndC->getAPIntValue().countTrailingOnes(); in ReduceLoadWidth()
/external/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp440 bool isAndLoadExtLoad(ConstantSDNode *AndC, LoadSDNode *LoadN,
3008 bool DAGCombiner::isAndLoadExtLoad(ConstantSDNode *AndC, LoadSDNode *LoadN, in isAndLoadExtLoad() argument
3011 uint32_t ActiveBits = AndC->getAPIntValue().getActiveBits(); in isAndLoadExtLoad()
3013 if (ActiveBits == 0 || !APIntOps::isMask(ActiveBits, AndC->getAPIntValue())) in isAndLoadExtLoad()
6439 auto *AndC = cast<ConstantSDNode>(N0.getOperand(1)); in visitZERO_EXTEND() local
6441 EVT LoadResultTy = AndC->getValueType(0); in visitZERO_EXTEND()
6443 if (isAndLoadExtLoad(AndC, LN0, LoadResultTy, ExtVT, LoadedVT, in visitZERO_EXTEND()
/external/llvm/lib/Target/ARM/
DARMISelLowering.cpp10841 ConstantSDNode *AndC = dyn_cast<ConstantSDNode>(And->getOperand(1)); in PerformCMOVToBFICombine() local
10842 if (!AndC || !AndC->getAPIntValue().isPowerOf2()) in PerformCMOVToBFICombine()
10882 unsigned BitInX = AndC->getAPIntValue().logBase2(); in PerformCMOVToBFICombine()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/
DARMISelLowering.cpp12478 const APInt *AndC = isPowerOf2Constant(And->getOperand(1)); in PerformCMOVToBFICombine() local
12479 if (!AndC) in PerformCMOVToBFICombine()
12519 unsigned BitInX = AndC->logBase2(); in PerformCMOVToBFICombine()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86ISelLowering.cpp34136 auto *AndC = dyn_cast<ConstantSDNode>(N0.getOperand(1)); in combineShiftRightLogical() local
34137 if (!ShiftC || !AndC) in combineShiftRightLogical()
34143 APInt MaskVal = AndC->getAPIntValue(); in combineShiftRightLogical()