diff options
author | Yingwei Zheng <dtcxzyw2333@gmail.com> | 2025-05-31 16:25:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-31 16:25:10 +0800 |
commit | 3ec0c5c7fef03985b43432c6b914c289d8a5435e (patch) | |
tree | 315dce1d2bfebdbd2980ae25883ef411238b8564 /clang/lib/Basic/CodeGenOptions.cpp | |
parent | 7c080e267722ba14439e2f35789c5c293672ab84 (diff) | |
download | llvm-3ec0c5c7fef03985b43432c6b914c289d8a5435e.zip llvm-3ec0c5c7fef03985b43432c6b914c289d8a5435e.tar.gz llvm-3ec0c5c7fef03985b43432c6b914c289d8a5435e.tar.bz2 |
[InstCombine] Propagate FMF from select instead of fcmp (#141010)
Previously,
https://github.com/llvm/llvm-project/commit/3d6b53980ce4ee855484fc8ae6ac3f99c85e48c3
propagates FMF from fcmp to avoid performance regressions. With the help
of https://github.com/llvm/llvm-project/pull/139861,
https://github.com/llvm/llvm-project/pull/141015, and
https://github.com/llvm/llvm-project/pull/141914, we can still convert
SPF into fabs/minnum/maxnum intrinsics even if some flags are missing.
This patch propagates FMF from select to address the long-standing
issue.
Closes https://github.com/llvm/llvm-project/issues/140994.
Diffstat (limited to 'clang/lib/Basic/CodeGenOptions.cpp')
0 files changed, 0 insertions, 0 deletions