llvm/llvm-project

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

開放

#171,877 建立於 2025年12月11日

 (3 則留言) (0 個反應) (1 位負責人)C++ (10,782 個分叉)batch import
code-cleanupconstant-foldingfloating-pointgood first issue

倉庫指標

星標
 (26,378 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南