[PATCH] use __builtin_convertvector for _mm_cvtepi32_ps to enable constant propagation
Matthias Kretz
kretz at kde.org
Tue Oct 1 00:27:55 PDT 2013
This is an updated patch for my report at http://llvm.org/bugs/show_bug.cgi?id=17408
http://llvm-reviews.chandlerc.com/D1792
Files:
lib/Headers/emmintrin.h
Index: lib/Headers/emmintrin.h
===================================================================
--- lib/Headers/emmintrin.h
+++ lib/Headers/emmintrin.h
@@ -1011,7 +1011,7 @@
static __inline__ __m128 __attribute__((__always_inline__, __nodebug__))
_mm_cvtepi32_ps(__m128i __a)
{
- return __builtin_ia32_cvtdq2ps((__v4si)__a);
+ return __builtin_convertvector((__v4si)__a, __v4sf);
}
static __inline__ __m128i __attribute__((__always_inline__, __nodebug__))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1792.1.patch
Type: text/x-patch
Size: 468 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131001/ecdf2ff1/attachment.bin>
More information about the cfe-commits
mailing list