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 <[email protected]>
* 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 <[email protected]>
* gcc.dg/tree-ssa/phi-opt-11.c: New test case.
phiopt.patch
Description: Binary data
