[cfe-dev] how to run no optimization except inlining at O3 level when generating IR
陈志伟 via cfe-dev
cfe-dev at lists.llvm.org
Sun Sep 20 23:30:40 PDT 2020
__attribute__((always_inline)) void conv2d_reduce() {
#pragma clang optimize off
/* function body */
#pragma clang optimize on
}
Put the pragma directive outside the function.
The optnone attribute is for functions.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200921/106c96dd/attachment.html>
More information about the cfe-dev
mailing list