[PATCH] D51588: DAG: Factor out helper function for odd vector sizes
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 4 07:23:05 PDT 2018
RKSimon accepted this revision.
RKSimon added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:630
+ for (unsigned i = ValueVT.getVectorNumElements(),
+ e = PartVT.getVectorNumElements(); i != e; ++i)
+ Ops.push_back(EltUndef);
----------------
Pull out the repeated getVectorNumElements() calls?
https://reviews.llvm.org/D51588
More information about the llvm-commits
mailing list