This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
The following "obvious" patch teaches fold that it can eliminate a VIEW_CONVERT_EXPR which "casts/reinterprets" its operand in the same type that it actually has! The following patch has been tested on i686-pc-linux-gnu with a full "make bootstrap", all default languages including Ada, and regression tested with a top-level "make -k check" with no new failures. Committed to mainline as revision 120945. 2007-01-18 Roger Sayle <roger@eyesopen.com> * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Optimize away a VIEW_CONVERT_EXPR to the same type as it's operand. Roger --
Attachment:
patchv.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |