]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/match.pd
gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize bool compares on RHS.
authorRichard Biener <rguenther@suse.de>
Tue, 4 Aug 2015 13:51:50 +0000 (13:51 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 4 Aug 2015 13:51:50 +0000 (13:51 +0000)
commit59c20dc74df24fa8e14ade6aecbfd4a1c6bbe30c
tree675f4300ac613114d6435cea0bc7cc8fdd7fcdc3
parent058e4c71c29989185bf59888d85d536eed50013d
gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize bool compares on RHS.

2015-08-04  Richard Biener  <rguenther@suse.de>

* gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
bool compares on RHS.
* match.pd: Add X ==/!= !X is false/true pattern.

* gcc.dg/tree-ssa/ssa-ccp-38.c: New testcase.

From-SVN: r226576
gcc/ChangeLog
gcc/gimple-fold.c
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-38.c [new file with mode: 0644]