diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2018-10-07 16:30:42 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2018-10-07 16:30:42 +0000 |
| commit | ecc8af61e78bce8075475a947538f7599aa0587e (patch) | |
| tree | dda676101b2ae4b8f6583b88abc558094e03e370 /llvm/lib/CodeGen/SelectionDAG | |
| parent | f956840dbe41f3121ecceea24e0f1aa15cb0f5bb (diff) | |
| download | bcm5719-llvm-ecc8af61e78bce8075475a947538f7599aa0587e.tar.gz bcm5719-llvm-ecc8af61e78bce8075475a947538f7599aa0587e.zip | |
[DAGCombiner] allow undef elts in vector fadd matching
llvm-svn: 343945
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 69ed0304985..e4b8d8e8455 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -10865,7 +10865,7 @@ SDValue DAGCombiner::visitFADD(SDNode *N) { return DAG.getNode(ISD::FADD, DL, VT, N1, N0, Flags); // N0 + -0.0 --> N0 (also allowed with +0.0 and fast-math) - ConstantFPSDNode *N1C = isConstOrConstSplatFP(N1); + ConstantFPSDNode *N1C = isConstOrConstSplatFP(N1, true); if (N1C && N1C->isZero()) if (N1C->isNegative() || Options.UnsafeFPMath || Flags.hasNoSignedZeros()) return N0; |

