* fold-const.c (fold_cond_expr_with_comparison): Move simplification
commit4e33b632aa383fed8e0a2b50974dc9f618781af1
authoramker <amker@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Nov 2016 12:47:31 +0000 (23 12:47 +0000)
committeramker <amker@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Nov 2016 12:47:31 +0000 (23 12:47 +0000)
treed12ecd7ecb082a700239231e770351f33b176773
parent83c0fb434a2895d17dad003751a3cb88afafd298
* 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).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@242751 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/match.pd