The 'optnone' attribute was added to LLVM IR some years ago, but
originally Clang used it only for the "optimize off" pragma.
Adding it to all functions when compiling at –O0 was a relatively recent change,
r304127 (end of May).
--paulr
From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of
Anastasiya Ruzhanskaya via llvm-dev
Sent: Wednesday, July 12, 2017 2:23 AM
To: llvm-dev at lists.llvm.org
Subject: [llvm-dev] noopt
Hello,
I wonder in what version of llvm the noopt attribute appeared, that is inserted
when O0 is specified? In some early versions I don't get this behavior.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20170712/309df4a4/attachment.html>