[PATCH] InstCombine: extract instead of shuffle when performing vector/array type punning
JF Bastien
jfb at chromium.org
Wed Feb 18 12:55:14 PST 2015
Hi jvoung, chandlerc,
SROA generates code that isn't quite as easy to optimize and contains unusual-sized shuffles, but that code is generally correct. As discussed in D7487 the right place to clean things up is InstCombine, which will pick up the type-punning pattern and transform it into a more obvious bitcast+extractelement, while leaving the other patterns SROA encounters as-is.
http://reviews.llvm.org/D7734
Files:
lib/Transforms/InstCombine/InstCombineVectorOps.cpp
test/Transforms/InstCombine/type_pun.ll
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7734.20213.patch
Type: text/x-patch
Size: 11372 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150218/78634369/attachment.bin>
More information about the llvm-commits
mailing list