Lines Matching refs:FCmpInst
4297 Instruction *InstCombiner::FoldFCmp_IntToFP_Cst(FCmpInst &I, in FoldFCmp_IntToFP_Cst()
4313 FCmpInst::Predicate P = I.getPredicate(); in FoldFCmp_IntToFP_Cst()
4325 if (P == FCmpInst::FCMP_OEQ || P == FCmpInst::FCMP_UEQ) in FoldFCmp_IntToFP_Cst()
4328 assert(P == FCmpInst::FCMP_ONE || P == FCmpInst::FCMP_UNE); in FoldFCmp_IntToFP_Cst()
4370 case FCmpInst::FCMP_UEQ: in FoldFCmp_IntToFP_Cst()
4371 case FCmpInst::FCMP_OEQ: in FoldFCmp_IntToFP_Cst()
4374 case FCmpInst::FCMP_UGT: in FoldFCmp_IntToFP_Cst()
4375 case FCmpInst::FCMP_OGT: in FoldFCmp_IntToFP_Cst()
4378 case FCmpInst::FCMP_UGE: in FoldFCmp_IntToFP_Cst()
4379 case FCmpInst::FCMP_OGE: in FoldFCmp_IntToFP_Cst()
4382 case FCmpInst::FCMP_ULT: in FoldFCmp_IntToFP_Cst()
4383 case FCmpInst::FCMP_OLT: in FoldFCmp_IntToFP_Cst()
4386 case FCmpInst::FCMP_ULE: in FoldFCmp_IntToFP_Cst()
4387 case FCmpInst::FCMP_OLE: in FoldFCmp_IntToFP_Cst()
4390 case FCmpInst::FCMP_UNE: in FoldFCmp_IntToFP_Cst()
4391 case FCmpInst::FCMP_ONE: in FoldFCmp_IntToFP_Cst()
4394 case FCmpInst::FCMP_ORD: in FoldFCmp_IntToFP_Cst()
4396 case FCmpInst::FCMP_UNO: in FoldFCmp_IntToFP_Cst()
4536 Instruction *InstCombiner::visitFCmpInst(FCmpInst &I) { in visitFCmpInst()
4557 case FCmpInst::FCMP_UNO: // True if unordered: isnan(X) | isnan(Y) in visitFCmpInst()
4558 case FCmpInst::FCMP_ULT: // True if unordered or less than in visitFCmpInst()
4559 case FCmpInst::FCMP_UGT: // True if unordered or greater than in visitFCmpInst()
4560 case FCmpInst::FCMP_UNE: // True if unordered or not equal in visitFCmpInst()
4562 I.setPredicate(FCmpInst::FCMP_UNO); in visitFCmpInst()
4566 case FCmpInst::FCMP_ORD: // True if ordered (no nans) in visitFCmpInst()
4567 case FCmpInst::FCMP_OEQ: // True if ordered and equal in visitFCmpInst()
4568 case FCmpInst::FCMP_OGE: // True if ordered and greater than or equal in visitFCmpInst()
4569 case FCmpInst::FCMP_OLE: // True if ordered and less than or equal in visitFCmpInst()
4571 I.setPredicate(FCmpInst::FCMP_ORD); in visitFCmpInst()
4630 return new FCmpInst(I.getPredicate(), LHSExt->getOperand(0), in visitFCmpInst()
4651 return new FCmpInst(I.getSwappedPredicate(), Op, in visitFCmpInst()
4679 case FCmpInst::FCMP_OLT: in visitFCmpInst()
4682 case FCmpInst::FCMP_OGT: in visitFCmpInst()
4683 return new FCmpInst(FCmpInst::FCMP_ONE, CI->getArgOperand(0), RHSC); in visitFCmpInst()
4685 case FCmpInst::FCMP_OLE: in visitFCmpInst()
4686 return new FCmpInst(FCmpInst::FCMP_OEQ, CI->getArgOperand(0), RHSC); in visitFCmpInst()
4688 case FCmpInst::FCMP_OGE: in visitFCmpInst()
4689 return new FCmpInst(FCmpInst::FCMP_ORD, CI->getArgOperand(0), RHSC); in visitFCmpInst()
4692 case FCmpInst::FCMP_OEQ: in visitFCmpInst()
4693 case FCmpInst::FCMP_UEQ: in visitFCmpInst()
4694 case FCmpInst::FCMP_ONE: in visitFCmpInst()
4695 case FCmpInst::FCMP_UNE: in visitFCmpInst()
4696 return new FCmpInst(I.getPredicate(), CI->getArgOperand(0), RHSC); in visitFCmpInst()
4705 return new FCmpInst(I.getSwappedPredicate(), X, Y); in visitFCmpInst()
4711 return new FCmpInst(I.getPredicate(), LHSExt->getOperand(0), in visitFCmpInst()