]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/match.pd
gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
authorRichard Biener <rguenther@suse.de>
Mon, 19 Oct 2015 13:58:27 +0000 (13:58 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 19 Oct 2015 13:58:27 +0000 (13:58 +0000)
commit4534c2032ba23be0a1f6b74ea2e23bc94df0cb81
treeab6e2c78aa78e165e6c5f5307a23b2f3a4fa5fff
parent1c6e3c3e2ce560e555ba7d75a22179757a3c6489
gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.

2015-10-19  Richard Biener  <rguenther@suse.de>

* gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
(gimple_stmt_nonnegative_warnv_p): Use it.
* match.pd (CPROJ): New operator list.
(cproj (complex ...)): Move simplifications from ...
* builtins.c (fold_builtin_cproj): ... here.

* gcc.dg/torture/builtin-cproj-1.c: Skip for -O0.

From-SVN: r228970
gcc/ChangeLog
gcc/builtins.c
gcc/gimple-fold.c
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/builtin-cproj-1.c