2014-05-08 Marc Glisse <marc.glisse@inria.fr>
commitb6814ca0f83761d148c06b41d8fa11992bb347e1
authorglisse <glisse@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 May 2014 13:17:01 +0000 (8 13:17 +0000)
committerglisse <glisse@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 May 2014 13:17:01 +0000 (8 13:17 +0000)
treeba4f432f8402ceb0cdd18854c09f3615a8c2fbd6
parentff99a69528b04481b485eaa10aa45ce808b3de72
2014-05-08  Marc Glisse  <marc.glisse@inria.fr>

PR tree-optimization/59100
gcc/
* tree-ssa-phiopt.c: Include tree-inline.h.
(neutral_element_p, absorbing_element_p): New functions.
(value_replacement): Handle conditional binary operations with a
neutral or absorbing element.
gcc/testsuite/
* gcc.dg/tree-ssa/phi-opt-12.c: New file.
* gcc.dg/tree-ssa/phi-opt-13.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210212 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/phi-opt-12.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/phi-opt-13.c [new file with mode: 0644]
gcc/tree-ssa-phiopt.c