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