Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp1669 BinaryOperator *SubOneOp; in detectPopcountIdiom() local
1671 if ((SubOneOp = dyn_cast<BinaryOperator>(DefX2->getOperand(0)))) in detectPopcountIdiom()
1675 SubOneOp = dyn_cast<BinaryOperator>(DefX2->getOperand(1)); in detectPopcountIdiom()
1677 if (!SubOneOp || SubOneOp->getOperand(0) != VarX1) in detectPopcountIdiom()
1680 ConstantInt *Dec = dyn_cast<ConstantInt>(SubOneOp->getOperand(1)); in detectPopcountIdiom()
1682 !((SubOneOp->getOpcode() == Instruction::Sub && Dec->isOne()) || in detectPopcountIdiom()
1683 (SubOneOp->getOpcode() == Instruction::Add && in detectPopcountIdiom()