[llvm-commits] [PATCH] Prevent the mixing of S and D registers for vsqrt/vdiv instructions on A15

Silviu Baranga silbar01 at arm.com
Fri Sep 28 07:43:30 PDT 2012


It turns out that the PseudoInst can be expanded using only
TableGen definitions. I've updated the patch and attached it.

-- Silviu

> -----Original Message-----
> From: Silviu Baranga [mailto:silbar01 at arm.com]
> Sent: 28 September 2012 13:57
> To: 'Tim Northover'; Jim Grosbach
> Cc: llvm-commits at cs.uiuc.edu
> Subject: RE: [llvm-commits] [PATCH] Prevent the mixing of S and D
> registers for vsqrt/vdiv instructions on A15
> 
> Hi Jim,
> 
> I've used Tim's suggestion and replaced the CodeGenOnly
> definition with a PseudoInst.
> 
> The new patch is attached.
> 
> Thanks,
> Silviu
> 
> > -----Original Message-----
> > From: Tim Northover [mailto:t.p.northover at gmail.com]
> > Sent: 28 September 2012 07:19
> > To: Jim Grosbach
> > Cc: Silviu Baranga; llvm-commits at cs.uiuc.edu
> > Subject: Re: [llvm-commits] [PATCH] Prevent the mixing of S and D
> > registers for vsqrt/vdiv instructions on A15
> >
> > Hi Jim,
> >
> > > The duplicated instruction is a non-starter. We're working hard to
> > > get rid of CodeGenOnly definitions. The pattern should be
> > > representable in another way using the existing instruction
> > > definition.
> > >
> > > That is, the instruction definitions represent exactly that, the
> > > instructions. That's completely orthogonal to using NEON for scalar
> > > floating point.
> >
> > Hmm. At a tangent, I can see how CodeGenOnly can be replaced (a
> normal
> > PseudoInst expanded PostRA), but does this strictness apply to
> > isAsmParserOnly too? I don't think InstAlias is up to the job of
> > replacing it yet, at least while maintaining a sane operand
> > arrangement.
> >
> > Tim.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sqrt_div_neonfp_a15.diff
Type: application/octet-stream
Size: 3915 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120928/1255558b/attachment.obj>


More information about the llvm-commits mailing list