Lines Matching refs:Sub
609 /// SimplifySubInst - Given operands for a Sub, see if we can
617 return ConstantFoldInstOperands(Instruction::Sub, CLHS->getType(),
646 if (Value *V = SimplifyBinOp(Instruction::Sub, Y, Z, TD, DT, MaxRecurse-1))
655 if (Value *V = SimplifyBinOp(Instruction::Sub, X, Z, TD, DT, MaxRecurse-1))
670 if (Value *V = SimplifyBinOp(Instruction::Sub, X, Y, TD, DT, MaxRecurse-1))
672 if (Value *W = SimplifyBinOp(Instruction::Sub, V, Z, TD, DT,
679 if (Value *V = SimplifyBinOp(Instruction::Sub, X, Z, TD, DT, MaxRecurse-1))
681 if (Value *W = SimplifyBinOp(Instruction::Sub, V, Y, TD, DT,
694 if (Value *V = SimplifyBinOp(Instruction::Sub, Z, X, TD, DT, MaxRecurse-1))
703 // Mul distributes over Sub. Try some generic simplifications based on this.
704 if (Value *V = FactorizeBinOp(Instruction::Sub, Op0, Op1, Instruction::Mul,
713 // Threading Sub over selects and phi nodes is pointless, so don't bother.
2349 case Instruction::Sub:
2435 case Instruction::Sub: