On Fri, Nov 18, 2016 at 5:53 PM, Bin Cheng <bin.ch...@arm.com> wrote: > Hi, > This is a follow up patch for > https://gcc.gnu.org/ml/gcc-patches/2016-11/msg01898.html > It moves remaining simplification for (A == C1) ? A : C2 in > fold_cond_expr_with_comparison > to match.pd. Bootstrap and test on x86_64 and AArch64, is it OK?
Ok. Thanks, Richard. > Thanks, > bin > > 2016-11-17 Bin Cheng <bin.ch...@arm.com> > > * 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).