From c945ee63fe85b3dd7faba1db67a8fb47f9b6325f Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Fri, 1 Sep 2017 07:58:11 +0000 Subject: [PATCH] [X86] Remove unnecessary COPY_TO_REGCLASS(VR128) from the output patterns for FMA instrinsics. The instructions are already defined as writing a VR128 register. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312308 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86InstrFMA.td | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Target/X86/X86InstrFMA.td b/lib/Target/X86/X86InstrFMA.td index ee0cc54765a..9e554db918c 100644 --- a/lib/Target/X86/X86InstrFMA.td +++ b/lib/Target/X86/X86InstrFMA.td @@ -244,12 +244,12 @@ multiclass fma3s opc132, bits<8> opc213, bits<8> opc231, // operand, not the second. let Predicates = [HasFMA] in { def : Pat<(IntF32 VR128:$src1, VR128:$src2, VR128:$src3), - (COPY_TO_REGCLASS(!cast(NAME#"213SSr_Int") - $src1, $src2, $src3), VR128)>; + (!cast(NAME#"213SSr_Int") + VR128:$src1, VR128:$src2, VR128:$src3)>; def : Pat<(IntF64 VR128:$src1, VR128:$src2, VR128:$src3), - (COPY_TO_REGCLASS(!cast(NAME#"213SDr_Int") - $src1, $src2, $src3), VR128)>; + (!cast(NAME#"213SDr_Int") + VR128:$src1, VR128:$src2, VR128:$src3)>; } } -- 2.50.1