diff options
author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-08-17 11:33:48 +0000 |
---|---|---|
committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-08-17 11:33:48 +0000 |
commit | f874607f328a380280f91e8806e696f12033dd3c (patch) | |
tree | 5bceefdf02716c0b64e44633bc029c2f8f6d6c0e | |
parent | b828bb2a15c00204514d7a9585ffe743d8858237 (diff) | |
download | bcm5719-llvm-f874607f328a380280f91e8806e696f12033dd3c.tar.gz bcm5719-llvm-f874607f328a380280f91e8806e696f12033dd3c.zip |
[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.
llvm-svn: 340014
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp b/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp index d204574a8cf..58bf5b4be0e 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<Instruction>(V)) - createInstPostProc(I); - return V; -} - void FAddCombine::createInstPostProc(Instruction *NewInstr, bool NoNumber) { NewInstr->setDebugLoc(Instr->getDebugLoc()); |