llvm/llvm-project
getNegatedExpression should handle FP16_TO_FP and FP_TO_FP16
开放
#177,448 创建于 2026年1月22日
floating-pointgood first issuellvm:SelectionDAGmissed-optimization
仓库指标
- 星标
- (26,378 个星标)
- PR 合并指标
- (平均合并 1天 2小时) (30 天内合并 1,000 个 PR)
描述
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