Lines Matching refs:BO
136 bool ProcessBranchOnXOR(BinaryOperator *BO);
479 } else if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I)) { in ComputeValueKnownInPredecessors() local
482 if (ConstantInt *CI = dyn_cast<ConstantInt>(BO->getOperand(1))) { in ComputeValueKnownInPredecessors()
484 ComputeValueKnownInPredecessors(BO->getOperand(0), BB, LHSVals, in ComputeValueKnownInPredecessors()
490 Constant *Folded = ConstantExpr::get(BO->getOpcode(), V, CI); in ComputeValueKnownInPredecessors()
1258 bool JumpThreading::ProcessBranchOnXOR(BinaryOperator *BO) { in ProcessBranchOnXOR() argument
1259 BasicBlock *BB = BO->getParent(); in ProcessBranchOnXOR()
1263 if (isa<ConstantInt>(BO->getOperand(0)) || in ProcessBranchOnXOR()
1264 isa<ConstantInt>(BO->getOperand(1))) in ProcessBranchOnXOR()
1292 if (!ComputeValueKnownInPredecessors(BO->getOperand(0), BB, XorOpValues, in ProcessBranchOnXOR()
1293 WantInteger, BO)) { in ProcessBranchOnXOR()
1295 if (!ComputeValueKnownInPredecessors(BO->getOperand(1), BB, XorOpValues, in ProcessBranchOnXOR()
1296 WantInteger, BO)) in ProcessBranchOnXOR()
1341 BO->replaceAllUsesWith(UndefValue::get(BO->getType())); in ProcessBranchOnXOR()
1342 BO->eraseFromParent(); in ProcessBranchOnXOR()
1345 BO->replaceAllUsesWith(BO->getOperand(isLHS)); in ProcessBranchOnXOR()
1346 BO->eraseFromParent(); in ProcessBranchOnXOR()
1349 BO->setOperand(!isLHS, SplitVal); in ProcessBranchOnXOR()