[PATCH] Add another run of ARM Thumb2SizeReduction pass with -Oz

Eric Christopher echristo at gmail.com
Thu Mar 12 13:03:04 PDT 2015


On Thu, Mar 12, 2015 at 1:01 PM Renato Golin <renato.golin at linaro.org>
wrote:

> On 12 March 2015 at 17:17, Eric Christopher <echristo at gmail.com> wrote:
> > Neither of these is the right way to handle adding this pass. What needs
> to
> > happen is either a) for now a custom hook, or b) add some code to enable
> the
> > pass to be able to run custom code to decide whether or not to run the
> pass
> > on particular code. I did, in fact, clean up a bunch of this in the ARM
> pass
> > manager recently - for this particular pass.
>
> Do you mean to add a check for minsize && thumb2 in the pass itself?
> That'd be cleaner...
>
>
The pass already does. I added that recently. The "I'd like to check for
minsize only on this run" is something that will need to be added.

-eric


> --renato
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150312/16795d0a/attachment.html>


More information about the llvm-commits mailing list