-
- Downloads
Annotate imprecise FP division with fpaccuracy metadata
The OpenCL single precision division operation is only required to be accurate to 2.5ulp. Annotate the fdiv instruction with metadata which signals to the backend that an imprecise divide instruction may be used. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143136 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/CodeGen/CGExpr.cpp 16 additions, 0 deletionslib/CodeGen/CGExpr.cpp
- lib/CodeGen/CGExprScalar.cpp 12 additions, 2 deletionslib/CodeGen/CGExprScalar.cpp
- lib/CodeGen/CodeGenFunction.h 5 additions, 0 deletionslib/CodeGen/CodeGenFunction.h
- test/CodeGenOpenCL/fpaccuracy.cl 25 additions, 0 deletionstest/CodeGenOpenCL/fpaccuracy.cl
Loading
Please register or sign in to comment