[llvm-commits] [llvm] r53690 - in /llvm/branches/Apple/Gaz: lib/Transforms/Scalar/InstructionCombining.cpp test/Transforms/InstCombine/2008-07-16-sse2_storel_dq.ll

Bill Wendling isanbard at gmail.com
Wed Jul 16 10:40:24 PDT 2008


Author: void
Date: Wed Jul 16 12:40:24 2008
New Revision: 53690

URL: http://llvm.org/viewvc/llvm-project?rev=53690&view=rev
Log:
Pull r53666 into Gaz:

Fix PR2296. Do not transform x86_sse2_storel_dq into a full-width store.

Added:
    llvm/branches/Apple/Gaz/test/Transforms/InstCombine/2008-07-16-sse2_storel_dq.ll
Modified:
    llvm/branches/Apple/Gaz/lib/Transforms/Scalar/InstructionCombining.cpp

Modified: llvm/branches/Apple/Gaz/lib/Transforms/Scalar/InstructionCombining.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Gaz/lib/Transforms/Scalar/InstructionCombining.cpp?rev=53690&r1=53689&r2=53690&view=diff

==============================================================================
--- llvm/branches/Apple/Gaz/lib/Transforms/Scalar/InstructionCombining.cpp (original)
+++ llvm/branches/Apple/Gaz/lib/Transforms/Scalar/InstructionCombining.cpp Wed Jul 16 12:40:24 2008
@@ -8639,7 +8639,6 @@
   case Intrinsic::x86_sse_storeu_ps:
   case Intrinsic::x86_sse2_storeu_pd:
   case Intrinsic::x86_sse2_storeu_dq:
-  case Intrinsic::x86_sse2_storel_dq:
     // Turn X86 storeu -> store if the pointer is known aligned.
     if (GetOrEnforceKnownAlignment(II->getOperand(1), 16) >= 16) {
       const Type *OpPtrTy = 

Added: llvm/branches/Apple/Gaz/test/Transforms/InstCombine/2008-07-16-sse2_storel_dq.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Gaz/test/Transforms/InstCombine/2008-07-16-sse2_storel_dq.ll?rev=53690&view=auto

==============================================================================
--- llvm/branches/Apple/Gaz/test/Transforms/InstCombine/2008-07-16-sse2_storel_dq.ll (added)
+++ llvm/branches/Apple/Gaz/test/Transforms/InstCombine/2008-07-16-sse2_storel_dq.ll Wed Jul 16 12:40:24 2008
@@ -0,0 +1,13 @@
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep {store }
+; PR2296
+
+ at G = common global double 0.000000e+00, align 16
+
+define void @x(<2 x i64> %y) nounwind  {
+entry:
+	bitcast <2 x i64> %y to <4 x i32>
+	call void @llvm.x86.sse2.storel.dq( i8* bitcast (double* @G to i8*), <4 x i32> %0 ) nounwind 
+	ret void
+}
+
+declare void @llvm.x86.sse2.storel.dq(i8*, <4 x i32>) nounwind 





More information about the llvm-commits mailing list