[PATCH] D41126: [SelectionDAG] Fixed f16-from-vector promotion problem

Tim Renouf via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 13 01:29:10 PST 2017


tpr added inline comments.


================
Comment at: lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp:1977
 // STORE promotion handlers.
 SDValue DAGTypeLegalizer::PromoteFloatRes_BITCAST(SDNode *N) {
+  // If the bitcast is between scalar and v1 (in either direction), we need to
----------------
tpr wrote:
> arsenm wrote:
> > I don't think here should be encountering a v1* anything. i.e. getTypeAction(v1f16) should not be a TypePromoteFloat?
> OK, thanks, I'll have a look at that.
getTypeAction(v1f16) is TypeScalarizeVector, but it is still getting here.


https://reviews.llvm.org/D41126





More information about the llvm-commits mailing list