This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: [PATCH] xtensa: bfd: add special case to loop alignment check


On Wed, Jul 31, 2019 at 11:20 AM augustine.sterling@gmail.com
<augustine.sterling@gmail.com> wrote:
>
> On Wed, Jul 31, 2019 at 12:22 AM Max Filippov <jcmvbkbc@gmail.com> wrote:
> >
> > check_loop_aligned is used during link time relaxation to only allow
> > transformations that don't violate loop body alignment requirements.
> > Assembler can relax loops that have too long body by adding instructions
> > between the loop instruction and the loop body. check_loop_aligned must
> > check alignment of the first instruction of the actual loop body.
> > Detect loop / rsr.lend / wsr.lbeg sequence used in assembly time
> > relaxation and adjust alignment check when it's detected.
>
> Approved.

Applied to master, thanks.

> I'm surprised no one has noticed this until now.

It was broken by the recent change to long loop relaxation, before that
the whole such loops were marked as non-transformable.

-- 
Thanks.
-- Max


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