If you are suggesting using inc_gimple_stmt_max_uid(cfun) for all
statements, that won't work because we want to use the UIDs to
determine dominance within a BB. If your suggestion is to use that
instead of 1 when BB == NULL, that would work (even though setting it
to 1 is sufficient.)

Thanks,
Easwaran


On Mon, May 20, 2013 at 4:43 AM, Steven Bosscher <stevenb....@gmail.com> wrote:
> On Mon, May 20, 2013 at 1:41 AM, Easwaran Raman <era...@google.com> wrote:
>>         PR tree-optimization/57322
>>         * (build_and_add_sum): If a BB is empty, set the UID of the statement
>>         added to the BB to be 1.
>
> Maybe  "gimple_set_uid (stmt, inc_gimple_stmt_max_uid (cfun));"? That
> would keep the UIDs unique except for the copied UIDs.
>
> Ciao!
> Steven

Reply via email to