[llvm-commits] [llvm] r55734 - in /llvm/trunk: include/llvm/LinkAllPasses.h include/llvm/Transforms/IPO.h lib/Transforms/IPO/PartialSpecialization.cpp

Nick Lewycky nicholas at mxc.ca
Thu Sep 4 19:39:09 PDT 2008


Andrew Lenharth wrote:
> On Thu, Sep 4, 2008 at 7:52 AM, Matthijs Kooijman <matthijs at stdin.nl> wrote:
>> Cool to see a pass like this. I've been playing a bit with a highly similar
>> pass a while back, but I seem to remember needing a lot more code (don't have
>> the code at hand right now).
> 
> A lot more code would be needed to actually do the specialization.  I
> just make clones so that IPSCCP and DAE will actually propagate the
> constant and remove the argument.  It would easy enough with the
> CloneFunction API to do the constant propagation into new function
> (and this may save time), but I'd rather leave the DAE to DAE (though
> again, this might be pretty easy to fold into the pass).

Is there anything wrong with CloneAndPruneFunctionInto? It was written 
to perform efficient specialization.

Nick



More information about the llvm-commits mailing list