https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90078

--- Comment #14 from bin cheng <amker at gcc dot gnu.org> ---
Author: amker
Date: Wed May  8 11:37:45 2019
New Revision: 271008

URL: https://gcc.gnu.org/viewcvs?rev=271008&root=gcc&view=rev
Log:
        PR tree-optimization/90078
        * tree-ssa-loop-ivopts.c (INFTY): Increase value for infinite cost.
        (struct comp_cost): Promote type of members to int64_t.
        (infinite_cost): Don't set complexity in initialization.
        (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
        overflows to infinite_cost.
        (adjust_setup_cost): Promote type of parameter and cost computation
        to int64_t.
        (struct ainc_cost_data, struct iv_ca): Promote type of member to
        int64_t.
        (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
        cost computation to int64_t.
        (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
        int64_t's format specifier in dump.

        gcc/testsuite
        * g++.dg/tree-ssa/pr90078.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/tree-ssa/pr90078.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-loop-ivopts.c

Reply via email to