re PR tree-optimization/79347 (vect_do_peeling is messing up profile)
authorJan Hubicka <hubicka@ucw.cz>
Sun, 5 Feb 2017 17:16:52 +0000 (18:16 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 5 Feb 2017 17:16:52 +0000 (17:16 +0000)
commit5d3ebb71cbf9c6ed0ce04230a387485fa57e71ed
tree6a1953407e98b13d0d2602cd0d7e48943219acd8
parente6b07173d2cb671f6726bf1d00e08b107391fb5c
re PR tree-optimization/79347 (vect_do_peeling is messing up profile)

PR tree-ssa/79347
* cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
ELSE_PROB.
* cfgloopmanip.h (loop_version): Update prototype.
* modulo-sched.c (sms_schedule): Update call of loop_version.
* tree-if-conv.c(version_loop_for_if_conversion): Likewise.
* tree-parloops.c (gen_parallel_loop): Likewise.
* tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
* tree-ssa-loop-split.c (split_loop): Likewise.
* tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
* tree-vect-loop-manip.c (vect_loop_versioning): Likewise.

* gcc.dg/tree-ssa/ifc-10.c: Match for profile mismatches.
* gcc.dg/tree-ssa/ifc-11.c: Match for profile mismatches.
* gcc.dg/tree-ssa/ifc-12.c: Match for profile mismatches.
* gcc.dg/tree-ssa/ifc-20040816-1.c: Match for profile mismatches.
* gcc.dg/tree-ssa/ifc-20040816-2.c: Match for profile mismatches.
* gcc.dg/tree-ssa/ifc-5.c: Match for profile mismatches.
* gcc.dg/tree-ssa/ifc-8.c: Match for profile mismatches.
* gcc.dg/tree-ssa/ifc-9.c: Match for profile mismatches.
* gcc.dg/tree-ssa/ifc-cd.c: Match for profile mismatches.
* gcc.dg/tree-ssa/ifc-pr56541.c: Match for profile mismatches.
* gcc.dg/tree-ssa/ifc-pr68583.c: Match for profile mismatches.
* gcc.dg/tree-ssa/ifc-pr69489-1.c: Match for profile mismatches.
* gcc.dg/tree-ssa/ifc-pr69489-2.c: Match for profile mismatches.

From-SVN: r245196
24 files changed:
gcc/ChangeLog
gcc/cfgloopmanip.c
gcc/cfgloopmanip.h
gcc/modulo-sched.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ifc-10.c
gcc/testsuite/gcc.dg/tree-ssa/ifc-11.c
gcc/testsuite/gcc.dg/tree-ssa/ifc-12.c
gcc/testsuite/gcc.dg/tree-ssa/ifc-20040816-1.c
gcc/testsuite/gcc.dg/tree-ssa/ifc-20040816-2.c
gcc/testsuite/gcc.dg/tree-ssa/ifc-5.c
gcc/testsuite/gcc.dg/tree-ssa/ifc-8.c
gcc/testsuite/gcc.dg/tree-ssa/ifc-9.c
gcc/testsuite/gcc.dg/tree-ssa/ifc-cd.c
gcc/testsuite/gcc.dg/tree-ssa/ifc-pr56541.c
gcc/testsuite/gcc.dg/tree-ssa/ifc-pr68583.c
gcc/testsuite/gcc.dg/tree-ssa/ifc-pr69489-1.c
gcc/testsuite/gcc.dg/tree-ssa/ifc-pr69489-2.c
gcc/tree-if-conv.c
gcc/tree-parloops.c
gcc/tree-ssa-loop-manip.c
gcc/tree-ssa-loop-split.c
gcc/tree-ssa-loop-unswitch.c
gcc/tree-vect-loop-manip.c