Lines Matching refs:Sub
659 /// SimplifySubInst - Given operands for a Sub, see if we can
666 return ConstantFoldInstOperands(Instruction::Sub, CLHS->getType(),
683 // 0 - X -> 0 if the sub is NUW.
692 if (Value *V = SimplifyBinOp(Instruction::Sub, Y, Z, Q, MaxRecurse-1))
700 if (Value *V = SimplifyBinOp(Instruction::Sub, X, Z, Q, MaxRecurse-1))
714 if (Value *V = SimplifyBinOp(Instruction::Sub, X, Y, Q, MaxRecurse-1))
716 if (Value *W = SimplifyBinOp(Instruction::Sub, V, Z, Q, MaxRecurse-1)) {
722 if (Value *V = SimplifyBinOp(Instruction::Sub, X, Z, Q, MaxRecurse-1))
724 if (Value *W = SimplifyBinOp(Instruction::Sub, V, Y, Q, MaxRecurse-1)) {
736 if (Value *V = SimplifyBinOp(Instruction::Sub, Z, X, Q, MaxRecurse-1))
749 if (Value *V = SimplifyBinOp(Instruction::Sub, X, Y, Q, MaxRecurse-1))
761 // i1 sub -> xor.
766 // Threading Sub over selects and phi nodes is pointless, so don't bother.
3501 // getelementptr V, (sub P, V) -> P if P points to a type of size 1.
3507 // getelementptr V, (ashr (sub P, V), C) -> Q
3516 // getelementptr V, (sdiv (sub P, V), C) -> Q
3710 case Instruction::Sub:
3966 case Instruction::Sub: