Lines Matching refs:AndI
1628 static bool sinkAndCmp0Expression(Instruction *AndI, in sinkAndCmp0Expression() argument
1633 assert(!InsertedInsts.count(AndI) && in sinkAndCmp0Expression()
1638 if (AndI->hasOneUse() && in sinkAndCmp0Expression()
1639 AndI->getParent() == cast<Instruction>(*AndI->user_begin())->getParent()) in sinkAndCmp0Expression()
1644 if (!isa<ConstantInt>(AndI->getOperand(0)) && in sinkAndCmp0Expression()
1645 !isa<ConstantInt>(AndI->getOperand(1)) && in sinkAndCmp0Expression()
1646 AndI->getOperand(0)->hasOneUse() && AndI->getOperand(1)->hasOneUse()) in sinkAndCmp0Expression()
1649 for (auto *U : AndI->users()) { in sinkAndCmp0Expression()
1661 if (!TLI.isMaskAndCmp0FoldingBeneficial(*AndI)) in sinkAndCmp0Expression()
1665 LLVM_DEBUG(AndI->getParent()->dump()); in sinkAndCmp0Expression()
1670 for (Value::user_iterator UI = AndI->user_begin(), E = AndI->user_end(); in sinkAndCmp0Expression()
1682 User->getParent() == AndI->getParent() ? AndI : User; in sinkAndCmp0Expression()
1684 BinaryOperator::Create(Instruction::And, AndI->getOperand(0), in sinkAndCmp0Expression()
1685 AndI->getOperand(1), "", InsertPt); in sinkAndCmp0Expression()
1687 InsertedAnd->setDebugLoc(AndI->getDebugLoc()); in sinkAndCmp0Expression()
1696 AndI->eraseFromParent(); in sinkAndCmp0Expression()