[ConstantFolding] Move `LibCallSimplifier::optimizeFdim` into ConstantFolding
Open
code-cleanup
constant-folding
floating-point
good first issue
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
In https://github.com/llvm/llvm-project/pull/109235 the constant folding logic was implemented in `SimplifyLibCalls.cpp`. But it should be put in `ConstantFoldLibCall2` since both operands are known constants.
Contributor guide
Assessment
This issue has not been assessed yet.