[LLVMdev] [RFC] CodeGenPrepare will eventually introduce dependencies to libLLVMCodeGen in libLLVMScalarOpts

Philip Reames listmail at philipreames.com
Wed Feb 19 14:09:01 PST 2014


On 02/19/2014 02:02 PM, Chandler Carruth wrote:
>
> On Wed, Feb 19, 2014 at 1:43 PM, Hal Finkel <hfinkel at anl.gov 
> <mailto:hfinkel at anl.gov>> wrote:
>
>     It seems to me that IR optimizations that depend directly on
>     TargetLowering belong in CodeGen. Why don't you just move them all
>     there?
>
>
> Some of them *could* be profitably lifted to use a more abstract 
> interface like TTI. I'm pretty sure CGP is on the "not worth it" side 
> of this equation, and it may not be the only thing on that side, but 
> I'm trying to leave open the idea that there is some inflection point 
> here and we may have passes on both sides of it that currently are 
> still misusing TargetLowering and in the IR pass libraries.
Well said.

If we do move a bunch of things into CodeGen, should we create a 
subdirectory?

Philip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140219/e909de3f/attachment.html>


More information about the llvm-dev mailing list