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]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]