Home
last modified time | relevance | path

Searched refs:AndCst (Results 1 – 3 of 3) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp229 CmpInst &ICI, ConstantInt *AndCst) { in FoldCmpLoadFromIndexedGlobal() argument
311 if (AndCst) Elt = ConstantExpr::getAnd(Elt, AndCst); in FoldCmpLoadFromIndexedGlobal()
1316 ConstantInt *AndCst = cast<ConstantInt>(LHSI->getOperand(1)); in visitICmpInstWithInstAndIntCst() local
1327 (!AndCst->isNegative() && RHSV.isNonNegative())) { in visitICmpInstWithInstAndIntCst()
1330 ConstantExpr::getZExt(AndCst, Cast->getSrcTy())); in visitICmpInstWithInstAndIntCst()
1346 ConstantExpr::getTrunc(AndCst, Ty)); in visitICmpInstWithInstAndIntCst()
1380 if (!ICI.isSigned() || (!AndCst->isNegative() && !RHS->isNegative())) in visitICmpInstWithInstAndIntCst()
1392 cast<ConstantInt>(ConstantExpr::getShl(AndCst, ShAmt)); in visitICmpInstWithInstAndIntCst()
1422 NewAndCst = ConstantExpr::getLShr(AndCst, ShAmt); in visitICmpInstWithInstAndIntCst()
1424 NewAndCst = ConstantExpr::getShl(AndCst, ShAmt); in visitICmpInstWithInstAndIntCst()
[all …]
DInstCombineAndOrXor.cpp937 ConstantInt *AndCst, *SmallCst = nullptr, *BigCst = nullptr; in FoldAndOfICmps() local
942 match(Val, m_And(m_Specific(V), m_ConstantInt(AndCst)))) { in FoldAndOfICmps()
946 match(Val2, m_And(m_Specific(V), m_ConstantInt(AndCst)))) { in FoldAndOfICmps()
957 if ((Low & AndCst->getValue()) == 0 && (Low & BigCst->getValue()) == 0) { in FoldAndOfICmps()
958 Value *NewAnd = Builder->CreateAnd(V, Low | AndCst->getValue()); in FoldAndOfICmps()
960 Value *NewVal = ConstantInt::get(AndCst->getType()->getContext(), N); in FoldAndOfICmps()
DInstCombineInternal.h266 ConstantInt *AndCst = nullptr);