[CodeGen] Replace calls to getVectorNumElements() in SelectionDAG::SplitVector
authorDavid Sherwood <david.sherwood@arm.com>
Mon, 6 Jul 2020 09:17:16 +0000 (10:17 +0100)
committerDavid Sherwood <david.sherwood@arm.com>
Fri, 10 Jul 2020 07:11:30 +0000 (08:11 +0100)
commit229dfb4728f45cf9607aaa564155c267f3a0f59c
treec160ffc6189a6018572c4e18587f45181c6e4ca9
parenta65da5f5924fbb7bad28bbb397e3e9a94959df4c
[CodeGen] Replace calls to getVectorNumElements() in SelectionDAG::SplitVector

This patch replaces some invalid calls to getVectorNumElements() with calls
to getVectorMinNumElements() instead, since the code paths changed in this
patch work for both fixed and scalable vector types.

Fixes warnings in this test:

  sve-sext-zext.ll

Differential Revision: https://reviews.llvm.org/D83203
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp