[llvm] r228328 - [PowerPC] Prepare loops for pre-increment loads/stores
Hal Finkel
hfinkel at anl.gov
Thu Feb 5 11:07:45 PST 2015
----- 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.
Thanks again,
Hal
>
>
> -eric
--
Hal Finkel
Assistant Computational Scientist
Leadership Computing Facility
Argonne National Laboratory
More information about the llvm-commits
mailing list