[PATCH] D73749: [LegalizeTypes][X86] Add a new strategy for type legalizing f16 type that softens it to i16, but promotes to f32 around arithmetic ops.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 30 20:56:43 PST 2020


craig.topper marked an inline comment as done.
craig.topper added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp:2766
+
+SDValue DAGTypeLegalizer::SoftPromoteHalfOp_INSERT_VECTOR_ELT(SDNode *N,
+                                                              unsigned OpNo) {
----------------
efriedma wrote:
> Is SoftPromoteHalfOp_INSERT_VECTOR_ELT actually reachable?  If the operand is a half-float, the result would have to be a half vector, and we would split that, I think?
You're right. I'm not sure why I put that in there. I'll remove.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D73749/new/

https://reviews.llvm.org/D73749





More information about the llvm-commits mailing list