This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] More places in fold-const.c which can be converted to fold_buildN
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: gcc-patches Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Kazu Hirata <kazu at cs dot umass dot edu>
- Date: Sat, 26 Mar 2005 20:00:11 -0500
- Subject: [PATCH] More places in fold-const.c which can be converted to fold_buildN
I was doing a profile of gcc just for fun and I noticed that there was
a place still
left in fold-const.c to be converted over to fold_buildN. The reason
why it was
not converted before because a simple search for "fold (build[1-3] ("
did not
pick these places out because either they were spread out into two
different
lines or the expressions were complex.
This patch converts 6 places which I found by searching for "fold ("
and looking
at the flow of the program.
OK? Bootstrapped and tested on powerpc-darwin with no regressions.
Thanks,
Andrew Pinski
* fold-const.c (fold_binary_op_with_conditional_arg): Convert "fold
(buildN ("
usage to "fold_buildN (".
(fold_unary): Likewise.
(fold_binary): Likewise.
Attachment:
convertTofold_buildN-fold-const.diff.txt
Description: Text document