[PATCH] D53229: [LegalizeTypes] Teach PromoteIntRes_BITCAST to better handle a bitcast with vector output type and a vector input type that needs to be widened

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 20 22:53:04 PDT 2018


craig.topper added inline comments.


================
Comment at: lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp:324
+                             DAG.getConstant(0, dl, IdxTy));
+          return DAG.getNode(ISD::ANY_EXTEND, dl, NOutVT, InOp);
+        }
----------------
efriedma wrote:
> Should we just generate an ANY_EXTEND_VECTOR_INREG directly here?
I don't think I can. I don't have any guarantee of vectors of the same size here.


https://reviews.llvm.org/D53229





More information about the llvm-commits mailing list