llvm / llvm/llvm-project

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

Open
#171,877 6 comments 0 reactions 1 assignee Claimed by @Ronxvier View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.