summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2019-05-08 17:27:08 +0000
committerCraig Topper <craig.topper@intel.com>2019-05-08 17:27:08 +0000
commit493aec3ef5c2bd8ef828c19900b23372904d28cf (patch)
tree3abf1c18d2ef61f2b8661e205a0c193896c0992e /llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
parente13eff293db2fa12de11e8087ef62950d0cd8f83 (diff)
downloadbcm5719-llvm-493aec3ef5c2bd8ef828c19900b23372904d28cf.tar.gz
bcm5719-llvm-493aec3ef5c2bd8ef828c19900b23372904d28cf.zip
[FastISel][X86] Support FNeg instruction in target independent fast isel handling
This patch adds support for calling selectFNeg for FNeg instructions in addition to the fsub idiom Differential Revision: https://reviews.llvm.org/D61624 llvm-svn: 360273
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FastISel.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FastISel.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
index 98022dc8e45..8fb1a7b5bb9 100644
--- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
@@ -1839,6 +1839,9 @@ bool FastISel::selectOperator(const User *I, unsigned Opcode) {
case Instruction::Xor:
return selectBinaryOp(I, ISD::XOR);
+ case Instruction::FNeg:
+ return selectFNeg(I, I->getOperand(0));
+
case Instruction::GetElementPtr:
return selectGetElementPtr(I);
OpenPOWER on IntegriCloud