Searched refs:AndCst (Results 1 – 3 of 3) sorted by relevance
| /NextBSD/contrib/llvm/lib/Transforms/InstCombine/ |
| HD | InstCombineCompares.cpp | 231 CmpInst &ICI, ConstantInt *AndCst) { in FoldCmpLoadFromIndexedGlobal() argument 313 if (AndCst) Elt = ConstantExpr::getAnd(Elt, AndCst); in FoldCmpLoadFromIndexedGlobal() 1236 ConstantInt *AndCst = cast<ConstantInt>(LHSI->getOperand(1)); in visitICmpInstWithInstAndIntCst() local 1247 (!AndCst->isNegative() && RHSV.isNonNegative())) { in visitICmpInstWithInstAndIntCst() 1250 ConstantExpr::getZExt(AndCst, Cast->getSrcTy())); in visitICmpInstWithInstAndIntCst() 1266 ConstantExpr::getTrunc(AndCst, Ty)); in visitICmpInstWithInstAndIntCst() 1300 if (!ICI.isSigned() || (!AndCst->isNegative() && !RHS->isNegative())) in visitICmpInstWithInstAndIntCst() 1312 cast<ConstantInt>(ConstantExpr::getShl(AndCst, ShAmt)); in visitICmpInstWithInstAndIntCst() 1342 NewAndCst = ConstantExpr::getLShr(AndCst, ShAmt); in visitICmpInstWithInstAndIntCst() 1344 NewAndCst = ConstantExpr::getShl(AndCst, ShAmt); in visitICmpInstWithInstAndIntCst() [all …]
|
| HD | InstCombineAndOrXor.cpp | 940 ConstantInt *AndCst, *SmallCst = nullptr, *BigCst = nullptr; in FoldAndOfICmps() local 945 match(Val, m_And(m_Specific(V), m_ConstantInt(AndCst)))) { in FoldAndOfICmps() 949 match(Val2, m_And(m_Specific(V), m_ConstantInt(AndCst)))) { in FoldAndOfICmps() 960 if ((Low & AndCst->getValue()) == 0 && (Low & BigCst->getValue()) == 0) { in FoldAndOfICmps() 961 Value *NewAnd = Builder->CreateAnd(V, Low | AndCst->getValue()); in FoldAndOfICmps() 963 Value *NewVal = ConstantInt::get(AndCst->getType()->getContext(), N); in FoldAndOfICmps()
|
| HD | InstCombineInternal.h | 266 ConstantInt *AndCst = nullptr);
|