summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2024-05-06 14:30:54 +0700
committerGitHub <noreply@github.com>2024-05-06 14:30:54 +0700
commit0140ba031c9b6a4028b36adb292fb37eb62f3dc0 (patch)
treeb4303321061e1f3e241df9d27cd810458b3077ea /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentd654278bde8cfc87b962249b6781f079e0384535 (diff)
[clang] Enable FPContract with optnone (#91061)
Previously treatment of the attribute `optnone` was modified in https://github.com/llvm/llvm-project/pull/85605 ([clang] Set correct FPOptions if attribute 'optnone' presents). As a side effect FPContract was disabled for optnone. It created unneeded divergence with the behavior of -O0, which enables this optimization. In the discussion https://github.com/llvm/llvm-project/pull/85605#issuecomment-2089350379 it was pointed out that FP contraction should be enabled even if all optimizations are turned off, otherwise results of calculations would be different. This change enables FPContract at optnone.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions