[PATCH] Enhance phiopt to handle BIT_AND_EXPR
Zhenqiang Chen
zhenqiang.chen@arm.com
Mon Sep 30 10:30:00 GMT 2013
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: phiopt.patch
Type: application/octet-stream
Size: 3742 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130930/f7528ee8/attachment.obj>
More information about the Gcc-patches
mailing list