llvm/llvm-project

getNegatedExpression should handle FP16_TO_FP and FP_TO_FP16

Open

#177.448 aperta il 22 gen 2026

Vedi su GitHub
 (11 commenti) (0 reazioni) (0 assegnatari)C++ (10.782 fork)batch import
floating-pointgood first issuellvm:SelectionDAGmissed-optimization

Metriche repository

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

Descrizione

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

Guida contributor