diff --git a/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp b/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp index d204574a8cff..58bf5b4be0e1 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp @@ -195,7 +195,6 @@ namespace { Value *createFSub(Value *Opnd0, Value *Opnd1); Value *createFAdd(Value *Opnd0, Value *Opnd1); Value *createFMul(Value *Opnd0, Value *Opnd1); - Value *createFDiv(Value *Opnd0, Value *Opnd1); Value *createFNeg(Value *V); Value *createNaryFAdd(const AddendVect& Opnds, unsigned InstrQuota); void createInstPostProc(Instruction *NewInst, bool NoNumber = false); @@ -686,13 +685,6 @@ Value *FAddCombine::createFMul(Value *Opnd0, Value *Opnd1) { return V; } -Value *FAddCombine::createFDiv(Value *Opnd0, Value *Opnd1) { - Value *V = Builder.CreateFDiv(Opnd0, Opnd1); - if (Instruction *I = dyn_cast(V)) - createInstPostProc(I); - return V; -} - void FAddCombine::createInstPostProc(Instruction *NewInstr, bool NoNumber) { NewInstr->setDebugLoc(Instr->getDebugLoc());