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]

More ADDR_EXPR fixes


If we are merging block B into block A and block B has PHI nodes, then
we const/copy propagate the RHS of each PHI into the uses of the LHS of
each PHI.

This is all find and good, except that the use point might be the
index inside an ADDR_EXPR of the form &array[index].  When we
propagate in that case we need to call
recompute_tree_invariant_for_addr_expr to make sure all the flags
are set appropriately on the ADDR_EXPR.

There is no separate testcase for this change -- it triggered during
a bootstrap with Daniel's additional checking changes.

Bootstrapped and regression tested on i686-pc-linux-gnu.

Attachment: PPP
Description: Text document


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