[llvm] r312308 - [X86] Remove unnecessary COPY_TO_REGCLASS(VR128) from the output patterns for FMA instrinsics.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 1 00:58:11 PDT 2017
Author: ctopper
Date: Fri Sep 1 00:58:11 2017
New Revision: 312308
URL: http://llvm.org/viewvc/llvm-project?rev=312308&view=rev
Log:
[X86] Remove unnecessary COPY_TO_REGCLASS(VR128) from the output patterns for FMA instrinsics.
The instructions are already defined as writing a VR128 register.
Modified:
llvm/trunk/lib/Target/X86/X86InstrFMA.td
Modified: llvm/trunk/lib/Target/X86/X86InstrFMA.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrFMA.td?rev=312308&r1=312307&r2=312308&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrFMA.td (original)
+++ llvm/trunk/lib/Target/X86/X86InstrFMA.td Fri Sep 1 00:58:11 2017
@@ -244,12 +244,12 @@ multiclass fma3s<bits<8> opc132, bits<8>
// operand, not the second.
let Predicates = [HasFMA] in {
def : Pat<(IntF32 VR128:$src1, VR128:$src2, VR128:$src3),
- (COPY_TO_REGCLASS(!cast<Instruction>(NAME#"213SSr_Int")
- $src1, $src2, $src3), VR128)>;
+ (!cast<Instruction>(NAME#"213SSr_Int")
+ VR128:$src1, VR128:$src2, VR128:$src3)>;
def : Pat<(IntF64 VR128:$src1, VR128:$src2, VR128:$src3),
- (COPY_TO_REGCLASS(!cast<Instruction>(NAME#"213SDr_Int")
- $src1, $src2, $src3), VR128)>;
+ (!cast<Instruction>(NAME#"213SDr_Int")
+ VR128:$src1, VR128:$src2, VR128:$src3)>;
}
}
More information about the llvm-commits
mailing list