Searched defs:AndCst (Results 1 - 2 of 2) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineAndOrXor.cpp840 ConstantInt *AndCst, *SmallCst = nullptr, *BigCst = nullptr; local
845 match(Val, m_And(m_Specific(V), m_ConstantInt(AndCst)))) {
849 match(Val2, m_And(m_Specific(V), m_ConstantInt(AndCst)))) {
860 if ((Low & AndCst->getValue()) == 0 && (Low & BigCst->getValue()) == 0) {
861 Value *NewAnd = Builder->CreateAnd(V, Low | AndCst->getValue());
863 Value *NewVal = ConstantInt::get(AndCst->getType()->getContext(), N);
H A DInstCombineCompares.cpp217 /// If AndCst is non-null, then the loaded value is masked with that constant
221 CmpInst &ICI, ConstantInt *AndCst) {
308 if (AndCst) Elt = ConstantExpr::getAnd(Elt, AndCst);
1142 case Instruction::And: // (icmp pred (and X, AndCst), RHS)
1145 ConstantInt *AndCst = cast<ConstantInt>(LHSI->getOperand(1)); local
1156 (!AndCst->isNegative() && RHSV.isNonNegative())) {
1159 ConstantExpr::getZExt(AndCst, Cast->getSrcTy()));
1175 ConstantExpr::getTrunc(AndCst, Ty));
1209 if (!ICI.isSigned() || (!AndCst
220 FoldCmpLoadFromIndexedGlobal(GetElementPtrInst *GEP, GlobalVariable *GV, CmpInst &ICI, ConstantInt *AndCst) argument
[all...]

Completed in 586 milliseconds