HomePhabricator

[CodeGen] change const-ness of complex calls

Description

[CodeGen] change const-ness of complex calls

After clarification about the C standard, POSIX, and implementations:
The C standard allows errno-setting, and it's (unfortunately for optimization) even
more clearly stated in the newer additions to the standards.

We can leave these functions as always constant ('c') because they don't
actually do any math and therefore won't set errno:
cimag ( http://en.cppreference.com/w/c/numeric/complex/cimag )
creal ( http://en.cppreference.com/w/c/numeric/complex/creal )
cproj ( http://en.cppreference.com/w/c/numeric/complex/cproj )
conj (http://en.cppreference.com/w/c/numeric/complex/conj )

Differential Revision: https://reviews.llvm.org/D39611

Details

Committed
spatelNov 18 2017, 11:31 AM
Differential Revision
D39611: [CodeGen] change const-ness of complex calls
Parents
rL318597: [X86] Add another gather test with v8i8 sign extended indices.
Branches
Unknown
Tags
Unknown