[llvm-commits] [PATCH 2/2] fix issues similar to PR11334

Michael Liao michael.liao at intel.com
Tue Aug 14 15:32:29 PDT 2012


Hi

Here're two patches fixing issues similar to but not the exactly same as
PR11334. The second part fixes FPROUND from f64 vector to f32 vector.
This patches add a lowering helper for BUILD_VECTOR to recognize the
scalarized pattern due to FPROUND requires matching elements. A lower
overhead DAG combination of FPROUND is added as well to handle a special
case (v2f64 -> v2f32) in AVX, where it's converted to v4f64 -> v4f32
after type legalization and, instead of vcvtpd2ps, use vcvtpd2psy and
unnecessary 256-bit vector registers. Tests are added/revised as well.

Yours
- Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-enhance-PR11334-to-support-fp_round-from-v2f64-to-v2.patch
Type: text/x-patch
Size: 15145 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120814/6621c932/attachment.bin>


More information about the llvm-commits mailing list