[PR46649] sel-sched: don't try to delete the first BB in the region

Vladimir Makarov vmakarov@redhat.com
Tue Dec 14 18:10:00 GMT 2010


On 12/14/2010 12:29 PM, Alexander Monakov wrote:
> Hi,
>
> Our BB removal machinery can not delete the first BB in the region.  This
> patch restores the correct behaviour for purge_empty_blocks: we should skip
> the first BB unconditionally, not only if it's a preheader.  It was
> accidentally broken a while ago while fixing a different bug because I was not
> aware of the limitation.
>
> Bootstrapped&  tested on x86_64-linux, OK for trunk?
>
Ok, thanks.
> 2010-12-14  Alexander Monakov<amonakov@ispras.ru>
>
> 	PR rtl-optimization/46649
> 	* sel-sched-ir.c (purge_empty_blocks): Unconditionally skip the first
> 	basic block in the region.
>
> testsuite:
> 	g++.dg/opt/pr46649.C: New.



More information about the Gcc-patches mailing list