Fix PR47271: only if-convert full writes.
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Jan 2011 14:51:23 +0000 (14:51 +0000)
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Jan 2011 14:51:23 +0000 (14:51 +0000)
commit5790abbc74a3439158a53e1f8ae6848111088ced
treea0d39d42e2fe0300dd15f8f54888f83ac348c280
parent02f06d230fff4d40d93bf2da0d64a81aff4ce507
Fix PR47271: only if-convert full writes.

2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
    Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/47271
* tree-if-conv.c (bb_postdominates_preds): New.
(if_convertible_bb_p): Call bb_postdominates_preds.
(if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
(predicate_scalar_phi): Call bb_postdominates_preds.

* gcc.dg/tree-ssa/ifc-pr47271.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169233 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ifc-pr47271.c [new file with mode: 0644]
gcc/tree-if-conv.c