[llvm-dev] Different passes for different functions
David Blaikie via llvm-dev
llvm-dev at lists.llvm.org
Wed Oct 30 23:07:30 PDT 2019
There is limited support for different optimisations due to different
functions - subtarget features specifically can vary from function to
function and optimizations are intended to respect them. So the pass
pipeline remains the same, but passes should skip their work if the
subtarget features, attributes, etc, on a function indicate not to do a
certain optimization. (this is how the "optnone" is supported for instance
- but also subtarget features like SSE versions, etc)
On Wed, Oct 30, 2019 at 8:13 PM Sooyeon Lee via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> Hi all.
> (Assume that a program has one module.)
> Is there any way to apply different passes for different functions?
> If not, please advise me how to implement it while considering module
> Best regards,
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev