diff options
author | Craig Topper <craig.topper@intel.com> | 2019-05-08 17:27:08 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2019-05-08 17:27:08 +0000 |
commit | 493aec3ef5c2bd8ef828c19900b23372904d28cf (patch) | |
tree | 3abf1c18d2ef61f2b8661e205a0c193896c0992e /llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | |
parent | e13eff293db2fa12de11e8087ef62950d0cd8f83 (diff) | |
download | bcm5719-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.cpp | 3 |
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); |