[llvm] r345057 - [IR] Fix -Wunused-function after r345052
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 23 10:24:15 PDT 2018
Author: maskray
Date: Tue Oct 23 10:24:15 2018
New Revision: 345057
URL: http://llvm.org/viewvc/llvm-project?rev=345057&view=rev
Log:
[IR] Fix -Wunused-function after r345052
Modified:
llvm/trunk/lib/IR/Instructions.cpp
Modified: llvm/trunk/lib/IR/Instructions.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Instructions.cpp?rev=345057&r1=345056&r2=345057&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Instructions.cpp (original)
+++ llvm/trunk/lib/IR/Instructions.cpp Tue Oct 23 10:24:15 2018
@@ -2109,13 +2109,6 @@ BinaryOperator *BinaryOperator::CreateNo
Op->getType(), Name, InsertAtEnd);
}
-// isConstantAllOnes - Helper function for several functions below
-static inline bool isConstantAllOnes(const Value *V) {
- if (const Constant *C = dyn_cast<Constant>(V))
- return C->isAllOnesValue();
- return false;
-}
-
bool BinaryOperator::isFNeg(const Value *V, bool IgnoreZeroSign) {
if (const BinaryOperator *Bop = dyn_cast<BinaryOperator>(V))
if (Bop->getOpcode() == Instruction::FSub)
More information about the llvm-commits
mailing list