Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DLoopIdiomRecognize.cpp1195 BinaryOperator *SubOneOp; in detectPopcountIdiom() local
1197 if ((SubOneOp = dyn_cast<BinaryOperator>(DefX2->getOperand(0)))) in detectPopcountIdiom()
1201 SubOneOp = dyn_cast<BinaryOperator>(DefX2->getOperand(1)); in detectPopcountIdiom()
1203 if (!SubOneOp || SubOneOp->getOperand(0) != VarX1) in detectPopcountIdiom()
1206 ConstantInt *Dec = dyn_cast<ConstantInt>(SubOneOp->getOperand(1)); in detectPopcountIdiom()
1208 !((SubOneOp->getOpcode() == Instruction::Sub && Dec->isOne()) || in detectPopcountIdiom()
1209 (SubOneOp->getOpcode() == Instruction::Add && in detectPopcountIdiom()
/external/llvm/lib/Transforms/Scalar/
DLoopIdiomRecognize.cpp1033 BinaryOperator *SubOneOp; in detectPopcountIdiom() local
1035 if ((SubOneOp = dyn_cast<BinaryOperator>(DefX2->getOperand(0)))) in detectPopcountIdiom()
1039 SubOneOp = dyn_cast<BinaryOperator>(DefX2->getOperand(1)); in detectPopcountIdiom()
1041 if (!SubOneOp) in detectPopcountIdiom()
1044 Instruction *SubInst = cast<Instruction>(SubOneOp); in detectPopcountIdiom()