[llvm-dev] Disable optimization on basic block level

Matthias Braun via llvm-dev llvm-dev at lists.llvm.org
Mon Apr 24 10:27:41 PDT 2017

> On Apr 24, 2017, at 10:23 AM, David Jones <djones at xtreme-eda.com> wrote:
> How do you disable optimization for a function?
There is the optnone attribute (see http://llvm.org/docs/LangRef.html#function-attributes <http://llvm.org/docs/LangRef.html#function-attributes> ). Passes will skip functions marked with that unless they are essential for code generation.

- Matthias

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170424/51c2a14d/attachment.html>

More information about the llvm-dev mailing list