This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: shrink-wrapping duplicates BBs across partitions.
On Tue, Sep 11, 2012 at 05:40:30PM +0200, Steven Bosscher wrote:
> On Tue, Sep 11, 2012 at 5:31 PM, Christian Bruel <christian.bruel@st.com> wrote:
> > Actually, the edge is fairly simple. I have
> >
> > BB5 (BB_COLD_PARTITION) -> BB10 (BB_HOT_PARTITION) -> EXIT
> >
> > and BB10 has no other incoming edges. and we are duplicating it.
>
> That is wrong, should never happen. Is there a test case to play with?
> It'd be good to have a PR for this.
Isn't that the standard case when !HAVE_return ? Then you can have only a
single return through epilogue, and when the epilogue is in the hot
partition, even if cold code is returning, it needs to jump to the epilogue.
Jakub