llvm/llvm-project
View on GitHub[ConstantFolding] Move `LibCallSimplifier::optimizeFdim` into ConstantFolding
Open
#171,877 opened on Dec 11, 2025
code-cleanupconstant-foldingfloating-pointgood first issue
Repository metrics
- Stars
- (26,378 stars)
- PR merge metrics
- (Avg merge 1d 2h) (1,000 merged PRs in 30d)
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.