fold-const.c (fold_cond_expr_with_comparison): Move simplification for A == C1 ?...
authorBin Cheng <bin.cheng@arm.com>
Wed, 23 Nov 2016 12:47:31 +0000 (12:47 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Wed, 23 Nov 2016 12:47:31 +0000 (12:47 +0000)
commite25350118c44492fed4ea9f168d0b8596d3d03fc
treed12ecd7ecb082a700239231e770351f33b176773
parentb54819879e0518b3f1acc5242f9c1d86dd1b9e3c
fold-const.c (fold_cond_expr_with_comparison): Move simplification for A == C1 ? A : C2 to below.

* fold-const.c (fold_cond_expr_with_comparison): Move simplification
for A == C1 ? A : C2 to below.
* match.pd: Move from above to here:
(cond (eq (convert1? x) c1) (convert2? x) c2)
  -> (cond (eq x c1) c1 c2).

From-SVN: r242751
gcc/ChangeLog
gcc/fold-const.c
gcc/match.pd