[PATCH] D63900: [GVNSink] Add unary FNeg support to GVNSink pass
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 28 12:57:28 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL364678: [GVNSink] Add unary FNeg support to GVNSink pass (authored by mcinally, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D63900?vs=206942&id=207131#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63900/new/
https://reviews.llvm.org/D63900
Files:
llvm/trunk/lib/Transforms/Scalar/GVNSink.cpp
llvm/trunk/test/Transforms/GVNSink/fpmath.ll
Index: llvm/trunk/test/Transforms/GVNSink/fpmath.ll
===================================================================
--- llvm/trunk/test/Transforms/GVNSink/fpmath.ll
+++ llvm/trunk/test/Transforms/GVNSink/fpmath.ll
@@ -1,8 +1,9 @@
; RUN: opt -S < %s -gvn-sink | FileCheck %s
; CHECK-LABEL: sink
-; CHECK: fneg
+; CHECK-NOT: fneg
; CHECK: = phi
+; CHECK: fneg
define float @sink(float %a, float %b, i1 %cmp) {
entry:
br i1 %cmp, label %if.then, label %if.else
Index: llvm/trunk/lib/Transforms/Scalar/GVNSink.cpp
===================================================================
--- llvm/trunk/lib/Transforms/Scalar/GVNSink.cpp
+++ llvm/trunk/lib/Transforms/Scalar/GVNSink.cpp
@@ -441,6 +441,7 @@
break;
case Instruction::Call:
case Instruction::Invoke:
+ case Instruction::FNeg:
case Instruction::Add:
case Instruction::FAdd:
case Instruction::Sub:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63900.207131.patch
Type: text/x-patch
Size: 898 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190628/40a482ef/attachment.bin>
More information about the llvm-commits
mailing list