On Wed, Jan 31, 2018 at 10:55 AM, Richard Biener <richard.guent...@gmail.com> wrote: > On Tue, Dec 19, 2017 at 4:36 PM, Bin Cheng <bin.ch...@arm.com> wrote: >> HI, >> This patch backports r254778 and test case in r244815 to GCC6. Bootstrap and >> test on x86_64. Is it OK? > > Ok. Retested and applied on GCC6 branch.
Thanks, bin > > Richard. > >> Thanks, >> bin >> >> 2017-12-18 Bin Cheng <bin.ch...@arm.com> >> >> Backport from mainline >> 2017-11-15 Bin Cheng <bin.ch...@arm.com> >> >> PR tree-optimization/82726 >> PR tree-optimization/70754 >> * tree-predcom.c (order_drefs_by_pos): New function. >> (combine_chains): Move code setting has_max_use_after to... >> (try_combine_chains): ...here. New parameter. Sort combined chains >> according to position information. >> (tree_predictive_commoning_loop): Update call to above function. >> (update_pos_for_combined_chains, pcom_stmt_dominates_stmt_p): New. >> >> gcc/testsuite >> 2017-12-18 Bin Cheng <bin.ch...@arm.com> >> >> Backport from mainline >> 2017-11-15 Bin Cheng <bin.ch...@arm.com> >> >> PR tree-optimization/82726 >> * gcc.dg/tree-ssa/pr82726.c: New test. >> >> Backport from mainline >> 2017-01-23 Bin Cheng <bin.ch...@arm.com> >> >> PR tree-optimization/70754 >> * gfortran.dg/pr70754.f90: New test.