llvm/llvm-project

[ConstantFolding] Move `LibCallSimplifier::optimizeFdim` into ConstantFolding

Open

#171877 opened on Dec 11, 2025

View on GitHub
 (3 comments) (0 reactions) (1 assignee)C++ (26,378 stars) (10,782 forks)batch import
code-cleanupconstant-foldingfloating-pointgood first issue

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