Lines Matching refs:Add
615 /// Given operands for an Add, see if we can fold the result.
619 if (Constant *C = foldOrCommuteConstant(Instruction::Add, Op0, Op1, Q))
665 if (Value *V = SimplifyAssociativeBinOp(Instruction::Add, Op0, Op1, Q,
669 // Threading Add over selects and phi nodes is pointless, so don't bother.
779 if (Value *W = SimplifyBinOp(Instruction::Add, X, V, Q, MaxRecurse-1)) {
787 if (Value *W = SimplifyBinOp(Instruction::Add, Y, V, Q, MaxRecurse-1)) {
823 if (Value *W = SimplifyBinOp(Instruction::Add, V, Y, Q, MaxRecurse-1)) {
903 // Mul distributes over Add. Try some generic simplifications based on this.
904 if (Value *V = ExpandBinOp(Instruction::Mul, Op0, Op1, Instruction::Add,
2279 // Add commutes, try both ways.
2286 // Add commutes, try both ways.
2780 if (LBO && LBO->getOpcode() == Instruction::Add) {
2790 if (RBO && RBO->getOpcode() == Instruction::Add) {
5004 case Instruction::Add:
5519 case Instruction::Add: