Help with identifing all cost models in GCC to make it adaptable ?..

2008-07-31 Thread Grigori Fursin
Dear All, We continue developing adaptable GCC (MILEPOST GCC) and we plan to have more results this fall on selecting good optimization passes and their orders to improve program execution time, reduce code size and compilation time across different architectures automatically using statistical

Re: Help with identifing all cost models in GCC to make it adaptable ?..

2008-07-31 Thread David Edelsohn
Grigori, Many of the costs now are handled by GCC parameters. See gcc/params.def accessed in the source code using PARAM_VALUE. Many other cost models use macros with COST in their name, such as TARGET_RTX_COSTS / rtx_cost BRANCH_COST (and LOGICAL_OP_NON_SHORT_CIRCUIT)

RE: Help with identifing all cost models in GCC to make it adaptable ?..

2008-07-31 Thread Grigori Fursin
Thanks, David! That's a good start. I will need to find places in GCC where these parameters are used to monitor the behavior of transformations based on these parameters and be able to change the compiler decisions through ICI to learn how to tune those costs based on program execution