Lines Matching full:fold
196 // Try to fold constant mul into select arguments.
416 // Try to fold constant mul into select arguments.
530 // The purpose is two-fold:
597 /// SimplifyDivRemOfSelect - Try to fold a divide or remainder of a select
708 // See if we can fold away this div instruction.
745 FoldUDivOperandCb FoldAction; ///< Informs visitUDiv() how to fold this
749 Value *OperandToFold; ///< Which operand to fold.
1047 Constant *Fold = 0;
1053 Fold = ConstantExpr::getFDiv(C1, C2);
1056 Fold = ConstantExpr::getFMul(C1, C2);
1059 Fold = ConstantExpr::getFDiv(C1, C2);
1063 if (Fold) {
1064 const APFloat &FoldC = cast<ConstantFP>(Fold)->getValueAPF();
1067 BinaryOperator::CreateFDiv(Fold, X) :
1068 BinaryOperator::CreateFMul(X, Fold);
1135 // See if we can fold away this rem instruction.