llvm/llvm-project

getNegatedExpression should handle FP16_TO_FP and FP_TO_FP16

Ouverte

#177 448 ouverte le 22 janv. 2026

 (11 commentaires) (0 réaction) (0 personne assignée)C++ (10 782 forks)batch import
floating-pointgood first issuellvm:SelectionDAGmissed-optimization

Métriques du dépôt

Stars
 (26 378 étoiles)
Métriques de merge PR
 (Merge moyen 1j 2h) (1 000 PRs mergées en 30 j)

Description

getNegatedExpression does not handle the opcodes FP16_TO_FP and FP_TO_FP16, but it could. This could improve use of source modifiers on AMDGPU with illegal f16.

I started implementing it in this patch, but it requires additional work to avoid regressions.

0001-DAG-Implement-getNegatedExpression-for-FP16_TO_FP.patch

Guide contributeur