llvm/llvm-project

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

Open

#189.479 aperta il 30 mar 2026

Vedi su GitHub
 (3 commenti) (0 reazioni) (1 assegnatario)C++ (10.782 fork)batch import
good first issuellvm:SelectionDAG

Metriche repository

Star
 (26.378 star)
Metriche merge PR
 (Merge medio 1g 2h) (1000 PR mergiate in 30 g)

Descrizione

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.

Guida contributor