[PATCH] [X86] Look for scalar through one bitcast when lowering to VBROADCAST.
Ahmed Bougacha
ahmed.bougacha at gmail.com
Thu Jun 18 16:55:10 PDT 2015
Hi chandlerc, spatel,
Fixes PR23464: one way to use the broadcast intrinsics is something like:
_mm256_broadcastw_epi16(_mm_cvtsi32_si128(*(int*)src));
We don't currently fold these, but we can look through one bitcast to find the broadcast scalar.
Note that I added a file specifically for these tests. I can add these to the various vector-shuffle-* files; I don't have an argument/preference for either.
http://reviews.llvm.org/D10557
Files:
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86InstrSSE.td
test/CodeGen/X86/vector-shuffle-pbroadcast-load.ll
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10557.27974.patch
Type: text/x-patch
Size: 4480 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150618/c675cf86/attachment.bin>
More information about the llvm-commits
mailing list