From aae0862172b9cee88b7cbe61f6f35fa5b5adbc3c Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Mon, 13 Dec 2010 23:02:31 +0000 Subject: [PATCH] Simplify N2VSPat, removing some unnecessary type arguments. llvm-svn: 121729 --- llvm/lib/Target/ARM/ARMInstrNEON.td | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/llvm/lib/Target/ARM/ARMInstrNEON.td b/llvm/lib/Target/ARM/ARMInstrNEON.td index d865c26db705..c4b590c2ac2a 100644 --- a/llvm/lib/Target/ARM/ARMInstrNEON.td +++ b/llvm/lib/Target/ARM/ARMInstrNEON.td @@ -4675,14 +4675,13 @@ def VTBX4Pseudo // NEON instructions for single-precision FP math //===----------------------------------------------------------------------===// -class N2VSPat - : NEONFPPat<(ResTy (OpNode SPR:$a)), +class N2VSPat + : NEONFPPat<(f32 (OpNode SPR:$a)), (EXTRACT_SUBREG - (OpTy (COPY_TO_REGCLASS - (OpTy (Inst (INSERT_SUBREG - (OpTy (COPY_TO_REGCLASS (OpTy (IMPLICIT_DEF)), DPR_VFP2)), - SPR:$a, ssub_0))), - DPR_VFP2)), ssub_0)>; + (v2f32 (COPY_TO_REGCLASS + (Inst (INSERT_SUBREG + (v2f32 (COPY_TO_REGCLASS (v2f32 (IMPLICIT_DEF)), DPR_VFP2)), + SPR:$a, ssub_0)), DPR_VFP2)), ssub_0)>; class N3VSPat : NEONFPPat<(f32 (OpNode SPR:$a, SPR:$b)), @@ -4736,10 +4735,10 @@ def : N3VSMulOpPat, Requires<[HasNEON, UseNEONForFP, UseFPVMLx]>; // Vector Absolute used for single-precision FP -def : N2VSPat; +def : N2VSPat; // Vector Negate used for single-precision FP -def : N2VSPat; +def : N2VSPat; // Vector Maximum used for single-precision FP let neverHasSideEffects = 1 in @@ -4756,10 +4755,10 @@ def VMINfd_sfp : N3V<0, 0, 0b10, 0b1111, 0, 0, (outs DPR_VFP2:$Vd), def : N3VSPat; // Vector Convert between single-precision FP and integer -def : N2VSPat; -def : N2VSPat; -def : N2VSPat; -def : N2VSPat; +def : N2VSPat; +def : N2VSPat; +def : N2VSPat; +def : N2VSPat; //===----------------------------------------------------------------------===// // Non-Instruction Patterns