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 PING: stop ivopts from pessimizing code (PR42505)


Ping?

http://gcc.gnu.org/ml/gcc-patches/2010-06/msg01920.html

-Sandra

2010-06-18 Sandra Loosemore <sandra@codesourcery.com>

PR middle-end/42505

    gcc/
    * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
    comments about cost model.
    (try_add_cand_for):  Add second strategy for choosing initial set
    based on original IVs, controlled by ORIGINALP argument.
    (get_initial_solution): Add ORIGINALP argument.
    (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
    (find_optimal_iv_set): Try two different strategies for choosing
    the IV set, and return the one with lower cost.

    * cfgloopanal.c (init_set_costs): Use call_used_regs rather than
    fixed_regs to count number of registers available for loop variables.

    gcc/testsuite/
    * gcc.target/arm/pr42505.c: New test case.



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