Fix build failures from r159106.
authorCraig Topper <craig.topper@gmail.com>
Sun, 24 Jun 2012 06:08:31 +0000 (06:08 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sun, 24 Jun 2012 06:08:31 +0000 (06:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159107 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86InstrInfo.cpp
lib/Target/X86/X86InstrSSE.td

index 9eb88fd94b0c711c443bf006bd554c4ca01abef6..1c2345ecd362e41f890c85f03030fc25e5241998 100644 (file)
@@ -410,7 +410,6 @@ X86InstrInfo::X86InstrInfo(X86TargetMachine &tm)
     { X86::IMUL64rri8,      X86::IMUL64rmi8,          0 },
     { X86::Int_COMISDrr,    X86::Int_COMISDrm,        0 },
     { X86::Int_COMISSrr,    X86::Int_COMISSrm,        0 },
-    { X86::Int_CVTPD2PSrr,  X86::Int_CVTPD2PSrm,      TB_ALIGN_16 },
     { X86::Int_CVTPS2DQrr,  X86::Int_CVTPS2DQrm,      TB_ALIGN_16 },
     { X86::Int_CVTPS2PDrr,  X86::Int_CVTPS2PDrm,      0 },
     { X86::CVTSD2SI64rr,    X86::CVTSD2SI64rm,        0 },
@@ -493,7 +492,6 @@ X86InstrInfo::X86InstrInfo(X86TargetMachine &tm)
     // AVX 128-bit versions of foldable instructions
     { X86::Int_VCOMISDrr,   X86::Int_VCOMISDrm,       0 },
     { X86::Int_VCOMISSrr,   X86::Int_VCOMISSrm,       0 },
-    { X86::Int_VCVTPD2PSrr, X86::Int_VCVTPD2PSrm,     TB_ALIGN_16 },
     { X86::Int_VCVTPS2DQrr, X86::Int_VCVTPS2DQrm,     TB_ALIGN_16 },
     { X86::Int_VCVTPS2PDrr, X86::Int_VCVTPS2PDrm,     0 },
     { X86::Int_VUCOMISDrr,  X86::Int_VUCOMISDrm,      0 },
index c8d60b0208cf73e808b9314e4fd216be11de817a..8455437ec581ae1eea6354e0274b50e586da114a 100644 (file)
@@ -2134,14 +2134,14 @@ let Predicates = [HasAVX] in {
   def : Pat<(int_x86_sse2_cvtpd2ps VR128:$src),
             (VCVTPD2PSrr VR128:$src)>;
   def : Pat<(int_x86_sse2_cvtpd2ps (memopv2f64 addr:$src)),
-            (VCVTPD2PSrr VR128:$src)>;
+            (VCVTPD2PSXrm addr:$src)>;
 }
 
 let Predicates = [HasSSE2] in {
   def : Pat<(int_x86_sse2_cvtpd2ps VR128:$src),
             (CVTPD2PSrr VR128:$src)>;
   def : Pat<(int_x86_sse2_cvtpd2ps (memopv2f64 addr:$src)),
-            (CVTPD2PSrr VR128:$src)>;
+            (CVTPD2PSrm addr:$src)>;
 }
 
 // AVX 256-bit register conversion intrinsics