ccmp.c (ccmp_tree_comparison_p): New function.
authorSteve Ellcey <sellcey@cavium.com>
Thu, 29 Jun 2017 18:20:14 +0000 (18:20 +0000)
committerSteve Ellcey <sje@gcc.gnu.org>
Thu, 29 Jun 2017 18:20:14 +0000 (18:20 +0000)
commitf580a969d7fbab634949805c8b7e49f4e6273a7f
treef02511316e7c5ca76d7116acd273831a4b4a1af2
parentbe3b7dcf5c0f48ce72fe7a6f30db350e5c6872f3
ccmp.c (ccmp_tree_comparison_p): New function.

2017-06-29  Steve Ellcey  <sellcey@cavium.com>

* ccmp.c (ccmp_tree_comparison_p): New function.
(ccmp_candidate_p): Update to use above function.
(get_compare_parts): New function.
(expand_ccmp_next): Update to use new functions.
(expand_ccmp_expr_1): Take tree arg instead of gimple, update to use
new functions.
(expand_ccmp_expr): Pass tree instead of gimple to expand_ccmp_expr_1,
take mode as argument.
* ccmp.h (expand_ccmp_expr): Add mode as argument.
* expr.c (expand_expr_real_1): Pass mode as argument.

From-SVN: r249805
gcc/ChangeLog
gcc/ccmp.c
gcc/ccmp.h
gcc/expr.c