From: James Molloy Date: Thu, 13 Aug 2015 17:28:20 +0000 (+0000) Subject: [ARM] Allow vmin/vmax of scalars to be emitted without UseNEONForFP. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=377a93dbc219b7fe3db09590038a3c9b55deb6cb;p=oota-llvm.git [ARM] Allow vmin/vmax of scalars to be emitted without UseNEONForFP. 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 --- diff --git a/lib/Target/ARM/ARMInstrNEON.td b/lib/Target/ARM/ARMInstrNEON.td index 22b5547def0..889b8a97d25 100644 --- a/lib/Target/ARM/ARMInstrNEON.td +++ b/lib/Target/ARM/ARMInstrNEON.td @@ -6338,8 +6338,8 @@ def : N3VSMulOpPat, Requires<[HasVFP4, UseNEONForFP, UseFusedMAC]>; def : N2VSPat; def : N2VSPat; -def : N3VSPat; -def : N3VSPat; +def : N3VSPat, Requires<[HasNEON]>; +def : N3VSPat, Requires<[HasNEON]>; def : NVCVTFIPat; def : NVCVTFIPat; def : NVCVTIFPat;