Lines Matching defs:Fold
164 // Try to fold constant mul into select arguments.
384 // Try to fold constant mul into select arguments.
498 // The purpose is two-fold:
536 /// SimplifyDivRemOfSelect - Try to fold a divide or remainder of a select
648 // See if we can fold away this div instruction.
895 Constant *Fold = 0;
901 Fold = ConstantExpr::getFDiv(C1, C2);
904 Fold = ConstantExpr::getFMul(C1, C2);
907 Fold = ConstantExpr::getFDiv(C1, C2);
911 if (Fold) {
912 const APFloat &FoldC = cast<ConstantFP>(Fold)->getValueAPF();
915 BinaryOperator::CreateFDiv(Fold, X) :
916 BinaryOperator::CreateFMul(X, Fold);
983 // See if we can fold away this rem instruction.