Re: [PATCH] Fix combiner with added_sets_[12] (PR rtl-optimization/52060)

2012-02-07 Thread Eric Botcazou
2012-02-06 Jakub Jelinek ja...@redhat.com PR rtl-optimization/52060 * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables, copy i1src to i1src_copy whenever added_sets_2 i1_feeds_i2_n already before i1dest - i1src substitution in newpat, copy i0src to

[PATCH] Fix combiner with added_sets_[12] (PR rtl-optimization/52060)

2012-02-06 Thread Jakub Jelinek
Hi! combine_simplify_rtx and its helpers (called from subst) apparently modify the given RTL in-place, there are many SUBST () calls all around those functions. On the attached testcase in particular on arm when newpat = subst (newpat, i1dest, i1src, 0, 0, 0); is called, force_to_mode modifies