[llvm] r340014 - [InstCombine] Remove unused method FAddCombine::createFDiv(). NFC

Andrea Di Biagio via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 17 04:33:49 PDT 2018


Author: adibiagio
Date: Fri Aug 17 04:33:48 2018
New Revision: 340014

URL: http://llvm.org/viewvc/llvm-project?rev=340014&view=rev
Log:
[InstCombine] Remove unused method FAddCombine::createFDiv(). NFC

This commit fixes a (gcc 7.3.0) [-Wunused-function] warning caused by the
presence of unused method FaddCombine::createFDiv().
The last use of that method was removed at r339519.


Modified:
    llvm/trunk/lib/Transforms/InstCombine/InstCombineAddSub.cpp

Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineAddSub.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineAddSub.cpp?rev=340014&r1=340013&r2=340014&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineAddSub.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineAddSub.cpp Fri Aug 17 04:33:48 2018
@@ -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);
@@ -684,13 +683,6 @@ Value *FAddCombine::createFMul(Value *Op
   if (Instruction *I = dyn_cast<Instruction>(V))
     createInstPostProc(I);
   return V;
-}
-
-Value *FAddCombine::createFDiv(Value *Opnd0, Value *Opnd1) {
-  Value *V = Builder.CreateFDiv(Opnd0, Opnd1);
-  if (Instruction *I = dyn_cast<Instruction>(V))
-    createInstPostProc(I);
-  return V;
 }
 
 void FAddCombine::createInstPostProc(Instruction *NewInstr, bool NoNumber) {




More information about the llvm-commits mailing list