llvm/llvm-project

getNegatedExpression should handle FP16_TO_FP and FP_TO_FP16

Open

#177,448 创建于 2026年1月22日

在 GitHub 查看
 (11 评论) (0 反应) (0 负责人)C++ (10,782 fork)batch import
floating-pointgood first issuellvm:SelectionDAGmissed-optimization

仓库指标

Star
 (26,378 star)
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

贡献者指南