[tuples][patch] Fixing a bug in tree-complex.c

Oleg Ryjkov olegr@google.com
Thu Mar 20 20:58:00 GMT 2008


Hi,

This patch fixes a bug in tree_lower_complex - after it was converted
to tuples, GIMPLE_CALLs that have a lhs(so used to be
GIMPLE_MODIFY_STATEMENTs in treeland) were not taken into account when
running the pass.
Also removes gimple_get_tmp_for, because of lack of users and sets a
gimple_register bit on new COMLEX temporaries, created to hold the
result of a call.
Tested, no regressions on i686-linux.

Oleg

2008-03-20  Oleg Ryjkov <olegr@google.com>

        * tree-complex.c (init_dont_simulate_again, complex_visit_stmt,
        update_complex_components, expand_complex_operations_1): Consider
        GIMPLE_CALLs with a lhs, not only GIMPLE_ASSIGNs.
        * gimplify.c (get_tmp_var_for): Removed.
        (gimplify_call_expr): Remove call to get_tmp_var_for, set
        gimple_register on a new lhs in some cases.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reg.diff
Type: text/x-patch
Size: 4608 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080320/f90bbc33/attachment.bin>


More information about the Gcc-patches mailing list