This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Enhance phiopt to handle BIT_AND_EXPR


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.chen@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.chen@linaro.org>

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

Attachment: phiopt.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]