projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a215ac7
)
[ARM] Allow vmin/vmax of scalars to be emitted without UseNEONForFP.
author
James Molloy
<james.molloy@arm.com>
Thu, 13 Aug 2015 17:28:20 +0000
(17:28 +0000)
committer
James Molloy
<james.molloy@arm.com>
Thu, 13 Aug 2015 17:28:20 +0000
(17:28 +0000)
This overrides the default to more closely resemble the hand-crafted matching logic in ISelLowering. It makes sense, as there is no VFP equivalent of vmin or vmax, to use them when they're available even if in general VFP ops should be preferred.
This should be NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244915
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/ARM/ARMInstrNEON.td
patch
|
blob
|
history
diff --git
a/lib/Target/ARM/ARMInstrNEON.td
b/lib/Target/ARM/ARMInstrNEON.td
index 22b5547def0ab6cb2db74e95289e2af53990bc94..889b8a97d254127f1977b769d0a0d7e2d19fb9a1 100644
(file)
--- a/
lib/Target/ARM/ARMInstrNEON.td
+++ b/
lib/Target/ARM/ARMInstrNEON.td
@@
-6338,8
+6338,8
@@
def : N3VSMulOpPat<fmul, fsub, VFMSfd>,
Requires<[HasVFP4, UseNEONForFP, UseFusedMAC]>;
def : N2VSPat<fabs, VABSfd>;
def : N2VSPat<fneg, VNEGfd>;
-def : N3VSPat<fmaxnan, VMAXfd>;
-def : N3VSPat<fminnan, VMINfd>;
+def : N3VSPat<fmaxnan, VMAXfd>
, Requires<[HasNEON]>
;
+def : N3VSPat<fminnan, VMINfd>
, Requires<[HasNEON]>
;
def : NVCVTFIPat<fp_to_sint, VCVTf2sd>;
def : NVCVTFIPat<fp_to_uint, VCVTf2ud>;
def : NVCVTIFPat<sint_to_fp, VCVTs2fd>;