Issue 177448
Summary getNegatedExpression should handle FP16_TO_FP and FP_TO_FP16
Labels missed-optimization, floating-point, llvm:SelectionDAG
Assignees
Reporter arsenm
    [getNegatedExpression](https://github.com/llvm/llvm-project/blob/e89a99e26db168f99e928f6a82cab0df13a77c96/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp#L7556) 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](https://github.com/user-attachments/files/24806027/0001-DAG-Implement-getNegatedExpression-for-FP16_TO_FP.patch)
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to