[Ada] Fix strange performance drop for code using SSE vector types
Eric Botcazou
ebotcazou@adacore.com
Tue Apr 15 08:59:00 GMT 2014
Gigi generates a VIEW_CONVERT_EXPR in the middle of a hot loop, which kills
the performance at run time.
Tested on x86_64-suse-linux, applied on the mainline.
2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/utils.c (type_for_vector_element_p): New predicate.
(build_vector_type_for_size): New function.
(build_vector_type_for_array): Likewise.
(unchecked_convert): Build an intermediate vector type to convert
from a generic array type to a vector type.
(handle_vector_size_attribute): Reimplement.
(handle_vector_type_attribute): Likewise.
2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/vect14.adb: New test.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-patch
Size: 9629 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140415/04463047/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vect14.adb
Type: text/x-adasrc
Size: 666 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140415/04463047/attachment-0001.bin>
More information about the Gcc-patches
mailing list