[llvm-commits] [Review] Preparing for non-power-of-2 machine value types in X86ISelLowering and LegalizeDAG
Ken Dyck
Ken.Dyck at onsemi.com
Thu Dec 17 12:16:17 PST 2009
On Thursday, December 17, 2009 2:25 PM, Chris Lattner wrote:
>
> On Dec 17, 2009, at 8:07 AM, Ken Dyck wrote:
>
> > On Thursday, December 17, 2009 3:04 AM, Chris Lattner wrote:
> > >
> > > On Dec 16, 2009, at 7:33 AM, Ken Dyck wrote:
> > >
> > > > The attached patches prepare for the
> > > > introduction of non-power-of-2 machine
> > > > value types (as recently discussed [1]).
> > > > They contain no functional changes. They
> > > > merely eliminate assumptions that
> > > > incrementing/decrementing a
> > > > SimpleValueType doubles/halves its size
> > > > and that all non-power-of-2 types are
> > > > extended.
> > >
> > > The legalize change looks reasonable to me,
> > > but please change the for loop to be a while
> > > loop (I think it will be clearer) and make
> > > it be a method on EVT instead of inline in
> > > the legalizer.
> >
> > In moving it to EVT, the knowledge that the
> > source type is simple is lost and the loop
> > boundaries change. So a for loop seems to make
> > more sense now. What do you think of the
> > attached updated patch?
>
> Looks good to me, thanks Ken!
Committed in 91614.
More information about the llvm-commits
mailing list