llvm/llvm-project

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

Aberta

#171.877 aberto em 11 de dez. de 2025

 (3 comentários) (0 reação) (1 responsável)C++ (10.782 forks)batch import
code-cleanupconstant-foldingfloating-pointgood first issue

Métricas do repositório

Stars
 (26.378 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

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.

Guia do colaborador