[PATCH] Constant Hoisting Pass

Juergen Ributzka juergen at apple.com
Thu Jan 23 15:58:47 PST 2014


That would be great.

Yes, the TCC_LOAD part was and is still a little bit flaky. I think the only place where this is actually used is in the SelectionDAG.
A targets definition of how expensive a load is also not well defined in this context, so maybe it would be better if we have a
separate target hook to model this better?

-Juergen

On Jan 23, 2014, at 3:44 PM, Hal Finkel <hfinkel at anl.gov> wrote:

> Hi Juergen,
> 
> I think this looks useful, and I'd like to take advantage of this for PowerPC when it lands. One small request: I'd like to have some cost level in between "basic" and "load". There are constants on PPC that take a few add-cost instructions to materialize... hoisting these is likely useful, but loads of these constants should still be transformed into immediates (because the several integer instructions necessary are still cheaper than a load).
> 
> Thanks,
> Hal

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140123/450cab5a/attachment.html>


More information about the llvm-commits mailing list