[llvm] [DAGCombine] Add DAG optimisation for BF16_TO_FP (PR #69426)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 18 04:01:22 PDT 2023


================
@@ -26219,6 +26223,21 @@ SDValue DAGCombiner::visitFP_TO_BF16(SDNode *N) {
   return SDValue();
 }
 
+SDValue DAGCombiner::visitBF16_TO_FP(SDNode *N) {
----------------
jayfoad wrote:

Combine this with visitFP16_TO_FP above.

But couldn't SimplifyDemandedBits handle this optimization in a more generic way?

https://github.com/llvm/llvm-project/pull/69426


More information about the llvm-commits mailing list