[llvm] r228328 - [PowerPC] Prepare loops for pre-increment loads/stores

Eric Christopher echristo at gmail.com
Thu Feb 5 11:10:51 PST 2015


On Thu Feb 05 2015 at 11:07:46 AM Hal Finkel <hfinkel at anl.gov> wrote:

> ----- Original Message -----
> > From: "Eric Christopher" <echristo at gmail.com>
> > To: "Hal Finkel" <hfinkel at anl.gov>, llvm-commits at cs.uiuc.edu
> > Sent: Thursday, February 5, 2015 12:59:44 PM
> > Subject: Re: [llvm] r228328 - [PowerPC] Prepare loops for pre-increment
> loads/stores
> >
> >
> > +
> > + const PPCSubtarget *ST =
> > + TM ? TM->getSubtargetImpl(*Header-> getParent()) : nullptr;
> > +
> >
> >
> > I believe you can always depend on the TargetMachine existing.
>
> This may be something of a left-over (when I had originally worked on
> this, I had setup the pass so that it could also be invoked from opt, and
> thus no TM). We can probably clean that up now since I don't see any
> near-term use for running it outside of the backend.
>
>
Makes sense. It's a little weird that we allow this in general, but ... :)

-eric


> Thanks again,
> Hal
>
> >
> >
> > -eric
>
> --
> Hal Finkel
> Assistant Computational Scientist
> Leadership Computing Facility
> Argonne National Laboratory
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150205/96a7a1f0/attachment.html>


More information about the llvm-commits mailing list