[PATCH] D79167: [SVE][CodeGen] Legalise scalable vector types for vsetcc & vselect

Kerry McLaughlin via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 30 06:12:49 PDT 2020


kmclaughlin created this revision.
kmclaughlin added reviewers: sdesmalen, efriedma, dancgr.
Herald added subscribers: psnobl, rkruppe, hiraditya, tschuett.
Herald added a project: LLVM.
kmclaughlin added a parent revision: D79087: [SVE][Codegen] Lower legal min & max operations.

The visitSelect function in SelectionDAGBuilder calls
getTypeConversion to get the type of the operation
after it has been legalised.

This patch changes getTypeConversion to use
ElementCount where necessary to ensure that the
Scalable flag is not dropped.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79167

Files:
  llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
  llvm/lib/CodeGen/TargetLoweringBase.cpp
  llvm/test/CodeGen/AArch64/llvm-ir-to-intrinsic.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79167.261201.patch
Type: text/x-patch
Size: 14622 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200430/dfd49595/attachment-0001.bin>


More information about the cfe-commits mailing list