llvm/llvm-project

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

Open

#189.479 aberto em 30 de mar. de 2026

Ver no GitHub
 (3 comments) (0 reactions) (1 assignee)C++ (10.782 forks)batch import
good first issuellvm:SelectionDAG

Métricas do repositório

Stars
 (26.378 stars)
Métricas de merge de PR
 (Mesclagem média 1d 2h) (1.000 fundiu PRs em 30d)

Description

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.

Guia do colaborador