Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp1478 BinaryOperator *SubOneOp; in detectPopcountIdiom() local
1480 if ((SubOneOp = dyn_cast<BinaryOperator>(DefX2->getOperand(0)))) in detectPopcountIdiom()
1484 SubOneOp = dyn_cast<BinaryOperator>(DefX2->getOperand(1)); in detectPopcountIdiom()
1486 if (!SubOneOp || SubOneOp->getOperand(0) != VarX1) in detectPopcountIdiom()
1489 ConstantInt *Dec = dyn_cast<ConstantInt>(SubOneOp->getOperand(1)); in detectPopcountIdiom()
1491 !((SubOneOp->getOpcode() == Instruction::Sub && Dec->isOne()) || in detectPopcountIdiom()
1492 (SubOneOp->getOpcode() == Instruction::Add && in detectPopcountIdiom()