Hi,

The patch enhances phiopt to handle cases like:

  if (a == 0 && (...))
    return 0;
  return a;

Boot strap and no make check regression on X86-64 and ARM.

Is it OK for trunk?

Thanks!
-Zhenqiang

ChangeLog:
2013-09-30  Zhenqiang Chen  <zhenqiang.c...@linaro.org>

        * tree-ssa-phiopt.c (operand_equal_for_phi_arg_p_1): New.
        (value_replacement): Move a check to operand_equal_for_phi_arg_p_1.

testsuite/ChangeLog:
2013-09-30  Zhenqiang Chen  <zhenqiang.c...@linaro.org>

        * gcc.dg/tree-ssa/phi-opt-11.c: New test case.

Attachment: phiopt.patch
Description: Binary data

Reply via email to