reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
5959 if (getComplexity(I.getOperand(0)) < getComplexity(I.getOperand(1))) { 5959 if (getComplexity(I.getOperand(0)) < getComplexity(I.getOperand(1))) { 5960 I.swapOperands(); 5964 const CmpInst::Predicate Pred = I.getPredicate(); 5965 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1); 5965 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1); 5966 if (Value *V = SimplifyFCmpInst(Pred, Op0, Op1, I.getFastMathFlags(), 5967 SQ.getWithInstruction(&I))) 5968 return replaceInstUsesWith(I, V); 5981 I.setPredicate(FCmpInst::FCMP_UNO); 5982 I.setOperand(1, Constant::getNullValue(OpType)); 5983 return &I; 5990 I.setPredicate(FCmpInst::FCMP_ORD); 5991 I.setOperand(1, Constant::getNullValue(OpType)); 5992 return &I; 6000 I.setOperand(0, ConstantFP::getNullValue(OpType)); 6001 return &I; 6004 I.setOperand(1, ConstantFP::getNullValue(OpType)); 6005 return &I; 6012 return new FCmpInst(I.getSwappedPredicate(), X, Y, "", &I); 6012 return new FCmpInst(I.getSwappedPredicate(), X, Y, "", &I); 6021 if (I.hasOneUse()) 6022 if (SelectInst *SI = dyn_cast<SelectInst>(I.user_back())) { 6032 I.setOperand(1, ConstantFP::getNullValue(OpType)); 6033 return &I; 6045 if (LHSI->getParent() == I.getParent()) 6046 if (Instruction *NV = foldOpIntoPhi(I, cast<PHINode>(LHSI))) 6051 if (Instruction *NV = foldFCmpIntToFPConst(I, LHSI, RHSC)) 6055 if (Instruction *NV = foldFCmpReciprocalAndZero(I, LHSI, RHSC)) 6063 if (Instruction *Res = foldCmpLoadFromIndexedGlobal(GEP, GV, I)) 6069 if (Instruction *R = foldFabsWithFcmpZero(I)) 6077 return new FCmpInst(I.getSwappedPredicate(), X, NegC, "", &I); 6077 return new FCmpInst(I.getSwappedPredicate(), X, NegC, "", &I); 6084 return new FCmpInst(Pred, X, Y, "", &I); 6103 return new FCmpInst(Pred, X, NewC, "", &I); 6108 if (I.getType()->isVectorTy()) 6109 if (Instruction *Res = foldVectorCmp(I, Builder)) 6112 return Changed ? &I : nullptr;