[all-commits] [llvm/llvm-project] da7318: [CodeGen] Replace calls to getVectorNumElements() ...

david-arm via All-commits all-commits at lists.llvm.org
Fri Jul 10 00:29:47 PDT 2020


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

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

  Log Message:
  -----------
  [CodeGen] Replace calls to getVectorNumElements() in DAGTypeLegalizer::SetSplitVector

In DAGTypeLegalizer::SetSplitVector I have changed calls in the assert
from getVectorNumElements() to getVectorElementCount(), since this
code path works for both fixed and scalable vectors.

This fixes up one warning in the test:

  sve-sext-zext.ll

Differential Revision: https://reviews.llvm.org/D83196




More information about the All-commits mailing list