[PATCH] D17176: [CodeGen] Add getBuildVector and getSplatBuildVector helpers.

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 12 07:00:23 PST 2016


spatel added a comment.

I didn't look closely enough to know if this would help here, but it could shave a couple of lines off of the current http://reviews.llvm.org/D17181 patch: DAG.getConstant() has the unadvertised feature (no documentation or implementation comments) of creating splat build vector constants.

I used it here (hopefully without introducing any bugs!):
http://reviews.llvm.org/rL260609


http://reviews.llvm.org/D17176





More information about the llvm-commits mailing list