Lines Matching defs:BO
131 bool ProcessBranchOnXOR(BinaryOperator *BO);
474 } else if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I)) {
477 if (ConstantInt *CI = dyn_cast<ConstantInt>(BO->getOperand(1))) {
479 ComputeValueKnownInPredecessors(BO->getOperand(0), BB, LHSVals,
485 Constant *Folded = ConstantExpr::get(BO->getOpcode(), V, CI);
1226 bool JumpThreading::ProcessBranchOnXOR(BinaryOperator *BO) {
1227 BasicBlock *BB = BO->getParent();
1231 if (isa<ConstantInt>(BO->getOperand(0)) ||
1232 isa<ConstantInt>(BO->getOperand(1)))
1260 if (!ComputeValueKnownInPredecessors(BO->getOperand(0), BB, XorOpValues,
1263 if (!ComputeValueKnownInPredecessors(BO->getOperand(1), BB, XorOpValues,
1309 BO->replaceAllUsesWith(UndefValue::get(BO->getType()));
1310 BO->eraseFromParent();
1313 BO->replaceAllUsesWith(BO->getOperand(isLHS));
1314 BO->eraseFromParent();
1317 BO->setOperand(!isLHS, SplitVal);