gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison binaries.
authorRichard Biener <rguenther@suse.de>
Thu, 30 Jul 2015 13:11:41 +0000 (13:11 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 30 Jul 2015 13:11:41 +0000 (13:11 +0000)
commit819ec64c36cc83cf76a2820774b2baf0d73f45a2
tree21e7660d440ac08a0a38e73b83f9b8fe7848833f
parentcb5ca3151b583084caa29fc547a2d261cf8fad2d
gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison binaries.

2015-07-30  Richard Biener  <rguenther@suse.de>

* gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
(fold_stmt_1): ... here and work on GIMPLE directly.  Remove
redundant operand canonicalization.

From-SVN: r226404
gcc/ChangeLog
gcc/gimple-fold.c