summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorCameron McInally <cameron.mcinally@nyu.edu>2019-06-28 19:57:31 +0000
committerCameron McInally <cameron.mcinally@nyu.edu>2019-06-28 19:57:31 +0000
commitab4b2364e566cad140d8113a8251bd388da72ade (patch)
tree203c314bf51c35a41b1eb0a3ffb8ba0d458cb4f2 /llvm/lib/Transforms
parent9a6cef74d8a930baf3c0d9f41780bbef874f11a9 (diff)
downloadbcm5719-llvm-ab4b2364e566cad140d8113a8251bd388da72ade.tar.gz
bcm5719-llvm-ab4b2364e566cad140d8113a8251bd388da72ade.zip
[GVNSink] Add unary FNeg support to GVNSink pass
Differential Revision: https://reviews.llvm.org/D63900 llvm-svn: 364678
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/GVNSink.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/GVNSink.cpp b/llvm/lib/Transforms/Scalar/GVNSink.cpp
index 735f68329af..054025755c6 100644
--- a/llvm/lib/Transforms/Scalar/GVNSink.cpp
+++ b/llvm/lib/Transforms/Scalar/GVNSink.cpp
@@ -441,6 +441,7 @@ public:
break;
case Instruction::Call:
case Instruction::Invoke:
+ case Instruction::FNeg:
case Instruction::Add:
case Instruction::FAdd:
case Instruction::Sub:
OpenPOWER on IntegriCloud