llvm/llvm-project

[DAG] computeKnownFPClass - add ISD::SINT_TO_FP/UINT_TO_FP handling

開放

#189,479 建立於 2026年3月30日

 (3 則留言) (0 個反應) (1 位負責人)C++ (10,782 個分叉)batch import
good first issuellvm:SelectionDAG

倉庫指標

星標
 (26,378 顆星)
PR 合併指標
 (平均合併 1天 2小時) (30 天內合併 1,000 個 PR)

描述

This will need to be based off the implementation in computeKnownFPClass in ValueTracking.cpp.

Hopefully once https://github.com/llvm/llvm-project/pull/189476 lands the ISD::SINT_TO_FP/UINT_TO_FP handling can be removed from DAG.isKnownNeverNaN and the generic fallback to computeKnownFPClass can be used instead.

Must include DemandedElts handling and IR test coverage.

貢獻者指南