From b457e430f3fc8579a41d76a01a2272b11be29f79 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Fri, 31 May 2019 08:10:23 +0000 Subject: [PATCH] [InstructionSimplify] Add missing implementation of llvm::SimplifyUnOp. NFC There are no callers currently, but the function is declared so we should at least implement it. llvm-svn: 362205 --- llvm/lib/Analysis/InstructionSimplify.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llvm/lib/Analysis/InstructionSimplify.cpp b/llvm/lib/Analysis/InstructionSimplify.cpp index 1f8245d30f6f..9eb0e908aab4 100644 --- a/llvm/lib/Analysis/InstructionSimplify.cpp +++ b/llvm/lib/Analysis/InstructionSimplify.cpp @@ -4589,6 +4589,10 @@ static Value *simplifyFPUnOp(unsigned Opcode, Value *Op, } } +Value *llvm::SimplifyUnOp(unsigned Opcode, Value *Op, const SimplifyQuery &Q) { + return ::simplifyUnOp(Opcode, Op, Q, RecursionLimit); +} + Value *llvm::SimplifyFPUnOp(unsigned Opcode, Value *Op, FastMathFlags FMF, const SimplifyQuery &Q) { return ::simplifyFPUnOp(Opcode, Op, FMF, Q, RecursionLimit);