llvm/llvm-project
Ver no GitHubgetNegatedExpression should handle FP16_TO_FP and FP_TO_FP16
Open
#177.448 aberto em 22 de jan. de 2026
floating-pointgood first issuellvm:SelectionDAGmissed-optimization
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
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