Lines Matching refs:FCmpInst
3838 Instruction *InstCombiner::FoldFCmp_IntToFP_Cst(FCmpInst &I, in FoldFCmp_IntToFP_Cst()
3854 FCmpInst::Predicate P = I.getPredicate(); in FoldFCmp_IntToFP_Cst()
3866 if (P == FCmpInst::FCMP_OEQ || P == FCmpInst::FCMP_UEQ) in FoldFCmp_IntToFP_Cst()
3869 assert(P == FCmpInst::FCMP_ONE || P == FCmpInst::FCMP_UNE); in FoldFCmp_IntToFP_Cst()
3911 case FCmpInst::FCMP_UEQ: in FoldFCmp_IntToFP_Cst()
3912 case FCmpInst::FCMP_OEQ: in FoldFCmp_IntToFP_Cst()
3915 case FCmpInst::FCMP_UGT: in FoldFCmp_IntToFP_Cst()
3916 case FCmpInst::FCMP_OGT: in FoldFCmp_IntToFP_Cst()
3919 case FCmpInst::FCMP_UGE: in FoldFCmp_IntToFP_Cst()
3920 case FCmpInst::FCMP_OGE: in FoldFCmp_IntToFP_Cst()
3923 case FCmpInst::FCMP_ULT: in FoldFCmp_IntToFP_Cst()
3924 case FCmpInst::FCMP_OLT: in FoldFCmp_IntToFP_Cst()
3927 case FCmpInst::FCMP_ULE: in FoldFCmp_IntToFP_Cst()
3928 case FCmpInst::FCMP_OLE: in FoldFCmp_IntToFP_Cst()
3931 case FCmpInst::FCMP_UNE: in FoldFCmp_IntToFP_Cst()
3932 case FCmpInst::FCMP_ONE: in FoldFCmp_IntToFP_Cst()
3935 case FCmpInst::FCMP_ORD: in FoldFCmp_IntToFP_Cst()
3937 case FCmpInst::FCMP_UNO: in FoldFCmp_IntToFP_Cst()
4077 Instruction *InstCombiner::visitFCmpInst(FCmpInst &I) { in visitFCmpInst()
4098 case FCmpInst::FCMP_UNO: // True if unordered: isnan(X) | isnan(Y) in visitFCmpInst()
4099 case FCmpInst::FCMP_ULT: // True if unordered or less than in visitFCmpInst()
4100 case FCmpInst::FCMP_UGT: // True if unordered or greater than in visitFCmpInst()
4101 case FCmpInst::FCMP_UNE: // True if unordered or not equal in visitFCmpInst()
4103 I.setPredicate(FCmpInst::FCMP_UNO); in visitFCmpInst()
4107 case FCmpInst::FCMP_ORD: // True if ordered (no nans) in visitFCmpInst()
4108 case FCmpInst::FCMP_OEQ: // True if ordered and equal in visitFCmpInst()
4109 case FCmpInst::FCMP_OGE: // True if ordered and greater than or equal in visitFCmpInst()
4110 case FCmpInst::FCMP_OLE: // True if ordered and less than or equal in visitFCmpInst()
4112 I.setPredicate(FCmpInst::FCMP_ORD); in visitFCmpInst()
4171 return new FCmpInst(I.getPredicate(), LHSExt->getOperand(0), in visitFCmpInst()
4192 return new FCmpInst(I.getSwappedPredicate(), Op, in visitFCmpInst()
4225 case FCmpInst::FCMP_OLT: in visitFCmpInst()
4228 case FCmpInst::FCMP_OGT: in visitFCmpInst()
4229 return new FCmpInst(FCmpInst::FCMP_ONE, CI->getArgOperand(0), RHSC); in visitFCmpInst()
4231 case FCmpInst::FCMP_OLE: in visitFCmpInst()
4232 return new FCmpInst(FCmpInst::FCMP_OEQ, CI->getArgOperand(0), RHSC); in visitFCmpInst()
4234 case FCmpInst::FCMP_OGE: in visitFCmpInst()
4235 return new FCmpInst(FCmpInst::FCMP_ORD, CI->getArgOperand(0), RHSC); in visitFCmpInst()
4238 case FCmpInst::FCMP_OEQ: in visitFCmpInst()
4239 case FCmpInst::FCMP_UEQ: in visitFCmpInst()
4240 case FCmpInst::FCMP_ONE: in visitFCmpInst()
4241 case FCmpInst::FCMP_UNE: in visitFCmpInst()
4242 return new FCmpInst(I.getPredicate(), CI->getArgOperand(0), RHSC); in visitFCmpInst()
4252 return new FCmpInst(I.getSwappedPredicate(), X, Y); in visitFCmpInst()
4258 return new FCmpInst(I.getPredicate(), LHSExt->getOperand(0), in visitFCmpInst()