[Beignet] [PATCH 5/5] GBE: we no longer need to allocate register from two directions.

Zhigang Gong zhigang.gong at linux.intel.com
Mon Sep 14 02:35:51 PDT 2015


It turns out that the issue was not caused by this patch, so this patch is good to go.
I already submitted another patch to fix that liveness bug.

Thanks,
Zhigang Gong.

> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
> Zhigang Gong
> Sent: Monday, September 14, 2015 2:28 PM
> To: Zhigang Gong
> Cc: beignet at lists.freedesktop.org
> Subject: Re: [Beignet] [PATCH 5/5] GBE: we no longer need to allocate register
> from two directions.
> 
> Please ignore this patch, it seems there are some issues after this change.
> I will look into it and send it again when things got fixed.
> 
> Thanks,
> Zhigang Gong.
> 
> On Mon, Sep 14, 2015 at 02:19:36PM +0800, Zhigang Gong wrote:
> > Signed-off-by: Zhigang Gong <zhigang.gong at intel.com>
> > ---
> >  backend/src/backend/context.hpp            | 2 +-
> >  backend/src/backend/gen_reg_allocation.cpp | 2 +-
> >  2 files changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/backend/src/backend/context.hpp
> > b/backend/src/backend/context.hpp index e1f5a71..04bcf43 100644
> > --- a/backend/src/backend/context.hpp
> > +++ b/backend/src/backend/context.hpp
> > @@ -85,7 +85,7 @@ namespace gbe
> >        return JIPs.find(insn) != JIPs.end();
> >      }
> >      /*! Allocate some memory in the register file */
> > -    int16_t allocate(int16_t size, int16_t alignment, bool bFwd=0);
> > +    int16_t allocate(int16_t size, int16_t alignment, bool bFwd =
> > + true);
> >      /*! Deallocate previously allocated memory */
> >      void deallocate(int16_t offset);
> >      /*! Spilt a block into 2 blocks, for some registers allocate
> > together but  deallocate seperate */ diff --git
> > a/backend/src/backend/gen_reg_allocation.cpp
> > b/backend/src/backend/gen_reg_allocation.cpp
> > index 06f6cc7..bf2ac2b 100644
> > --- a/backend/src/backend/gen_reg_allocation.cpp
> > +++ b/backend/src/backend/gen_reg_allocation.cpp
> > @@ -1020,7 +1020,7 @@ namespace gbe
> >      using namespace ir;
> >
> >      if (ctx.reservedSpillRegs != 0) {
> > -      reservedReg = ctx.allocate(ctx.reservedSpillRegs * GEN_REG_SIZE,
> GEN_REG_SIZE);
> > +      reservedReg = ctx.allocate(ctx.reservedSpillRegs *
> > + GEN_REG_SIZE, GEN_REG_SIZE, false);
> >        reservedReg /= GEN_REG_SIZE;
> >      } else {
> >        reservedReg = 0;
> > --
> > 1.9.1
> >
> > _______________________________________________
> > Beignet mailing list
> > Beignet at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/beignet
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet



More information about the Beignet mailing list