[PATCH] D78636: [CodeGen] Use SPLAT_VECTOR for zeroinitialiser with scalable types

David Sherwood via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 22 07:01:02 PDT 2020


david-arm created this revision.
david-arm added reviewers: sdesmalen, kmclaughlin.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
david-arm added a reviewer: ctetreau.

When generating code for the LLVM IR zeroinitialiser operation, if
the vector type is scalable we should be using SPLAT_VECTOR instead
of BUILD_VECTOR.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D78636

Files:
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  llvm/test/CodeGen/AArch64/sve-zeroinit.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78636.259269.patch
Type: text/x-patch
Size: 3874 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200422/18c30f46/attachment-0001.bin>


More information about the llvm-commits mailing list