[PATCH] D14222: [CodeGenPrepare] Don't call getSubtargetImpl quite as often
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 2 08:36:02 PST 2015
+echristo, who did a bunch of this subtarget stuff, in case he has some
extra insight (and/or just so he knows in case other similar things come up)
On Sun, Nov 1, 2015 at 9:57 PM, Keno Fischer via llvm-commits <
llvm-commits at lists.llvm.org> wrote:
> loladiro created this revision.
> loladiro added a subscriber: llvm-commits.
> loladiro set the repository for this revision to rL LLVM.
>
> While profiling LLVM's memory allocation, I noticed that getSubtargetImpl
> was called quite often (and it allocates heap memory by doing string
> operations). This simple change to cache the
> TargetLowering/TargetRegisterInfo in CodeGenPrepare reduces the total
> number of allocations in my test compile by about 3%
>
> Repository:
> rL LLVM
>
> http://reviews.llvm.org/D14222
>
> Files:
> lib/CodeGen/CodeGenPrepare.cpp
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151102/dee4377a/attachment.html>
More information about the llvm-commits
mailing list