This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: limit code expansion on ifcvt - bbro too?


> 
> 
> >Hi,
> >I've noticed that my recent change to BIB branch to increase branch cost
> >to 2 caused code growth on average by about 2%.  This patch should solve
> >it by suppressing code expanding if conversion on non-hot blocks in
> >program. I think that disabling anything with branch_cost>=2 should do
> >almost well for most architectures except for VLIW ones where the
> >amortized cost of jump may be higher.  Any ideas for better interface?
> >
> >Honza
> 
> This isn't about the interface, but...
> 
> Is maybe_hot_bb_p usable for limiting code expansion on BBRO as well?
> If so, I'll try to submit a patch for it.
BY BBRO you mean basic block reordering?
Yes, you can limit expansion there by same trick, but at the moment BB
reordering does not expansion it knows about...

Honza
> 
> Toshi


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]