Concretize get_loop_exit_condition et al to working on gimple_cond
commit8d84c599ab9cb57fb2999562756f7eb483cd6086
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 13 Dec 2013 17:42:31 +0000 (13 12:42 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Fri, 24 Oct 2014 21:23:56 +0000 (24 17:23 -0400)
tree1093550949285ae616b7d77d9cc9be57dbfb8df3
parentfc1233e7d82756ad0d7d670ae16453988d938368
Concretize get_loop_exit_condition et al to working on gimple_cond

This corresponds to:
  [PATCH 18/89] Concretize get_loop_exit_condition et al to working on gimple_cond
  https://gcc.gnu.org/ml/gcc-patches/2014-04/msg01215.html
from the original 89-patch kit

That earlier patch was approved by Jeff:
> OK when prerequisites have gone in.
> Actually that's true for #17 & #18 as well.
in https://gcc.gnu.org/ml/gcc-patches/2014-05/msg00626.html

gcc/
* tree-scalar-evolution.h (get_loop_exit_condition): Return a
gimple_cond.
* tree-scalar-evolution.c (get_loop_exit_condition): Likewise, also
concretizing local "res" from gimple to gimple_cond.
* tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Convert
locals from gimple to gimple_cond.
(slpeel_can_duplicate_loop_p): Likewise.
* tree-vect-loop.c (vect_get_loop_niters): Return a gimple_cond.
(vect_analyze_loop_form): Convert local from gimple to gimple_cond.
gcc/ChangeLog.gimple-classes
gcc/tree-scalar-evolution.c
gcc/tree-scalar-evolution.h
gcc/tree-vect-loop-manip.c
gcc/tree-vect-loop.c