Lines Matching refs:BO
730 } else if (BinaryOperator *BO = dyn_cast<BinaryOperator>(I)) { in ComputeValueKnownInPredecessorsImpl() local
733 if (ConstantInt *CI = dyn_cast<ConstantInt>(BO->getOperand(1))) { in ComputeValueKnownInPredecessorsImpl()
735 ComputeValueKnownInPredecessorsImpl(BO->getOperand(0), BB, LHSVals, in ComputeValueKnownInPredecessorsImpl()
741 Constant *Folded = ConstantExpr::get(BO->getOpcode(), V, CI); in ComputeValueKnownInPredecessorsImpl()
1777 bool JumpThreadingPass::ProcessBranchOnXOR(BinaryOperator *BO) { in ProcessBranchOnXOR() argument
1778 BasicBlock *BB = BO->getParent(); in ProcessBranchOnXOR()
1782 if (isa<ConstantInt>(BO->getOperand(0)) || in ProcessBranchOnXOR()
1783 isa<ConstantInt>(BO->getOperand(1))) in ProcessBranchOnXOR()
1815 if (!ComputeValueKnownInPredecessors(BO->getOperand(0), BB, XorOpValues, in ProcessBranchOnXOR()
1816 WantInteger, BO)) { in ProcessBranchOnXOR()
1818 if (!ComputeValueKnownInPredecessors(BO->getOperand(1), BB, XorOpValues, in ProcessBranchOnXOR()
1819 WantInteger, BO)) in ProcessBranchOnXOR()
1863 BO->replaceAllUsesWith(UndefValue::get(BO->getType())); in ProcessBranchOnXOR()
1864 BO->eraseFromParent(); in ProcessBranchOnXOR()
1867 BO->replaceAllUsesWith(BO->getOperand(isLHS)); in ProcessBranchOnXOR()
1868 BO->eraseFromParent(); in ProcessBranchOnXOR()
1871 BO->setOperand(!isLHS, SplitVal); in ProcessBranchOnXOR()