[Docs] add note to avoid 'errno' for better vectorization (PR40265)

This is a partial fix for the documentation improvements requested in:
https://bugs.llvm.org/show_bug.cgi?id=40265

llvm-svn: 350845
This commit is contained in:
Sanjay Patel 2019-01-10 16:57:28 +00:00
parent 9b368f39a9
commit 080502e923
1 changed files with 4 additions and 0 deletions

View File

@ -340,6 +340,10 @@ instruction is available.
f[i] = floorf(f[i]);
}
Note that the optimizer may not be able to vectorize math library functions
that access external state such as "errno". To allow better optimization of
C/C++ math library functions, use "-fno-math-errno".
Partial unrolling during vectorization
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^