]> granicus.if.org Git - llvm/commitdiff
[X86] Use the correct types in some recently added isel patterns.
authorCraig Topper <craig.topper@intel.com>
Fri, 13 Jul 2018 22:27:53 +0000 (22:27 +0000)
committerCraig Topper <craig.topper@intel.com>
Fri, 13 Jul 2018 22:27:53 +0000 (22:27 +0000)
These were supposed to be integer types since we are selecting integer instructions.

Found while preparing to remove these patterns for another patch.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337057 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86InstrSSE.td

index 10c0a7febe9b19422843cb120092da921aeb3dbf..8f195847528bf18059c1974d8e28ab2d24c858a1 100644 (file)
@@ -6408,7 +6408,7 @@ let Predicates = [UseAVX] in {
 
   def : Pat<(v2f64 (X86Movsd VR128:$src1, VR128:$src2)),
             (VBLENDPDrri VR128:$src1, VR128:$src2, (i8 1))>;
-  def : Pat<(v2f64 (X86Movsd VR128:$src1, VR128:$src2)),
+  def : Pat<(v2i64 (X86Movsd VR128:$src1, VR128:$src2)),
             (VPBLENDWrri VR128:$src1, VR128:$src2, (i8 0xf))>;
   }
 
@@ -6446,7 +6446,7 @@ let Predicates = [UseSSE41, OptForSpeed] in {
 
   def : Pat<(v2f64 (X86Movsd VR128:$src1, VR128:$src2)),
             (BLENDPDrri VR128:$src1, VR128:$src2, (i8 1))>;
-  def : Pat<(v2f64 (X86Movsd VR128:$src1, VR128:$src2)),
+  def : Pat<(v2i64 (X86Movsd VR128:$src1, VR128:$src2)),
             (PBLENDWrri VR128:$src1, VR128:$src2, (i8 0xf))>;
 }