[PATCH] InstCombine: extract instead of shuffle when performing vector/array type punning
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 11372 bytes
Desc: not available
More information about the llvm-commits