[llvm-dev] get Optimization Level options

Ramakota Reddy via llvm-dev llvm-dev at lists.llvm.org
Wed Mar 20 06:45:23 PDT 2019


Thanks a lot Tim for your suggestions.

With Regards,
Ramakota.

-----Original Message-----
From: Tim Northover <t.p.northover at gmail.com>
Sent: Wednesday, March 20, 2019 6:52 PM
To: Ramakota Reddy <Ramakota.Reddy at arm.com>
Cc: llvm-dev at lists.llvm.org
Subject: Re: [llvm-dev] get Optimization Level options

Hi Ramakota,

On Wed, 20 Mar 2019 at 10:59, Ramakota Reddy via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> With -Oz option this splice() API is duplicating the RET instruction in predecessor blocks.

-Oz is handled slightly differently from the numeric options. It gets attached to the function as an attribute that you can check for with Function::optForMinSize.

> Could anyone please give your suggestions to get OPTLevel Options(which object will carry OptLevel Options in this stage?) in this level.

This looks like it's known by the PassManagerBuilder and given to the constructor of any pass that needs it. Mostly it just configures what passes are run at all though.

Cheers.


Tim.
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.


More information about the llvm-dev mailing list