[llvm] r362205 - [InstructionSimplify] Add missing implementation of llvm::SimplifyUnOp. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Fri May 31 01:10:23 PDT 2019

Author: ctopper
Date: Fri May 31 01:10:23 2019
New Revision: 362205

URL: http://llvm.org/viewvc/llvm-project?rev=362205&view=rev
[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.


Modified: llvm/trunk/lib/Analysis/InstructionSimplify.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/InstructionSimplify.cpp?rev=362205&r1=362204&r2=362205&view=diff
--- llvm/trunk/lib/Analysis/InstructionSimplify.cpp (original)
+++ llvm/trunk/lib/Analysis/InstructionSimplify.cpp Fri May 31 01:10:23 2019
@@ -4589,6 +4589,10 @@ static Value *simplifyFPUnOp(unsigned 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);

More information about the llvm-commits mailing list