On 01/30/14 07:51, Richard Biener wrote:

This fixes an oversight with the (p + o1) + o2 association with
respect to abnormal-used SSA names.  I've also added a single-use
test so we don't add extra computations.

Bootstrap and regtest running on x86_64-unknown-linux-gnu.

Richard.

2014-01-30  Richard Biener  <rguent...@suse.de>

        PR tree-optimization/59993
        * tree-ssa-forwprop.c (associate_pointerplus): Check we
        can propagate form the earlier stmt and avoid the transform
        when the intermediate result is needed.

        * gcc.dg/torture/pr59993.c: New testcase.
Seems reasonable to me.
jeff

Reply via email to