[PATCH] D31167: Use FPContractModeKind universally
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 10 11:06:08 PDT 2017
yaxunl added inline comments.
================
Comment at: cfe/trunk/include/clang/Basic/LangOptions.def:220
+/// \brief FP_CONTRACT mode (on/off/fast).
+ENUM_LANGOPT(DefaultFPContractMode, FPContractModeKind, 2, FPC_Off, "FP contraction type")
LANGOPT(NoBitFieldTypeAlign , 1, 0, "bit-field type alignment")
----------------
This change seemed to cause some performance degradations in some OpenCL applications.
This option used to be on by default. Now it is off by default.
There are applications do separated compile/link/codegen stages. In the codegen stage, clang is invoked with .bc as input, therefore this option is off by default, whereas it was on by default before this change.
Is there any reason not to keep the original behavior?
Thanks.
Repository:
rL LLVM
https://reviews.llvm.org/D31167
More information about the cfe-commits
mailing list