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

Renato Golin renato.golin at linaro.org
Thu Mar 12 13:01:47 PDT 2015


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...

--renato



More information about the llvm-commits mailing list