llvm/llvm-project

getNegatedExpression should handle FP16_TO_FP and FP_TO_FP16

オープン

#177,448 opened on 2026/01/22

 (11 件のコメント) (0 件のリアクション) (0 人の担当者)C++ (10,782 件のフォーク)batch import
floating-pointgood first issuellvm:SelectionDAGmissed-optimization

Repository metrics

Stars
 (26,378 個のスター)
PR merge metrics
 (平均マージ 1d 2h) (30d で 1,000 merged PRs)

説明

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

コントリビューターガイド