[PATCH] D126984: [clang] Add initial support for gcc's optimize function attribute
Dávid Bolvanský via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 10 12:49:39 PDT 2022
xbolva00 added a comment.
"The optimize attribute should be used for debugging purposes only. It is not suitable in production code."
Until they (users) start and any change in pipeline may surprise them.
Personally I am bigger fan of more targeted attributes like we have noinline / noipa proposed but stalled / and then we could have new ones to disable vectorizers, LICM, unroller, etc..
Yes, we could claim that attribute((optimize("-fno-slp-vectorize") then maps exactly to attribute((noslp)).
Still, I would like to hear some motivation words other than "gcc" has it.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126984/new/
https://reviews.llvm.org/D126984
More information about the cfe-commits
mailing list