[PATCH] Use NOP_EXPRs in vector lowering, and cleanup code
Paolo Bonzini
paolo.bonzini@lu.unisi.ch
Mon Apr 11 13:41:00 GMT 2005
This patch tries to use NOP_EXPRs instead of VIEW_CONVERT_EXPRs to
convert between vector types; it also tries to put VIEW_CONVERT_EXPRs on
the left side of the assignment rather than the right side. This patch
is independent of the generic vectorization stuff.
This improves the code because these NOP_EXPRs do not change the mode
and thus can be stripped sometimes by the optimizers. It improves the
code generated on Alpha for vect-7.c together with my generic
vectorization patches, for example.
It is also an occasion to clean up the code, moving the dispatcher for
the various expand_* functions into a separate function.
Bootstrapped/regtested C/C++ on i686-pc-linux-gnu, ok for mainline?
(Java does not test vectors).
Paolo
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vect-generic-prefer-nop-expr.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050411/8cf1a1e4/attachment.ksh>
More information about the Gcc-patches
mailing list