[PATCH] D27102: [Constants] Add scalable vector support to ConstantVector::getSplat. [IR support for SVE scalable vectors 2/4]

Paul Walker via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 24 07:05:58 PST 2016


paulwalker-arm created this revision.
paulwalker-arm added a reviewer: majnemer.
paulwalker-arm added a subscriber: llvm-commits.

  Create a version of ConstantVector::getSplat that takes VT::ElementCount
  and thus preserves a vector's scalable property.  The result for
  non-scalable vectors remain unchanged but scalable vectors use the same
  IR sequence as used for non-constant splats.  This prompted updates to
  some instructions to ensure they also preserve a vector's scalable
  property.


https://reviews.llvm.org/D27102

Files:
  include/llvm/IR/Constants.h
  lib/IR/ConstantFold.cpp
  lib/IR/Constants.cpp
  lib/IR/ConstantsContext.h
  lib/IR/Instructions.cpp
  test/Transforms/ConstProp/splat.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27102.79231.patch
Type: text/x-patch
Size: 9230 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161124/67654384/attachment.bin>


More information about the llvm-commits mailing list