[all-commits] [llvm/llvm-project] 5d84ea: [CodeGen] Remove calls to getVectorNumElements in ...

david-arm via All-commits all-commits at lists.llvm.org
Wed Jul 29 05:06:11 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5d84eafc6b86a42e261af8d753c3a823e0e7c67e
      https://github.com/llvm/llvm-project/commit/5d84eafc6b86a42e261af8d753c3a823e0e7c67e
  Author: David Sherwood <david.sherwood at arm.com>
  Date:   2020-07-29 (Wed, 29 Jul 2020)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp

  Log Message:
  -----------
  [CodeGen] Remove calls to getVectorNumElements in DAGTypeLegalizer::SplitVecOp_EXTRACT_SUBVECTOR

In DAGTypeLegalizer::SplitVecOp_EXTRACT_SUBVECTOR I have replaced
calls to getVectorNumElements with getVectorMinNumElements, since
this code path works for both fixed and scalable vector types. For
scalable vectors the index will be multiplied by VSCALE.

Fixes warnings in this test:

  sve-sext-zext.ll

Differential revision: https://reviews.llvm.org/D83198




More information about the All-commits mailing list