[SVE] Remove getNumElements() calls in visitGetElementPtrInst
authorDavid Sherwood <david.sherwood@arm.com>
Thu, 28 May 2020 15:33:44 +0000 (16:33 +0100)
committerDavid Sherwood <david.sherwood@arm.com>
Fri, 29 May 2020 14:26:44 +0000 (15:26 +0100)
commit0609704760d0a94cccdbd243d0d750d74ee6c459
treec1bab1e675ef0fd4339f340aeaa1fb12a0e4cc2e
parent41928c97b6a17264938fc765a6a0656d8b6e86ed
[SVE] Remove getNumElements() calls in visitGetElementPtrInst

Replace calls to getNumElements() with getElementCount() in order
to avoid warnings for scalable vectors. The warnings were discovered
by this existing test:

  test/CodeGen/AArch64/sve-gep.ll

Differential revision: https://reviews.llvm.org/D80782
llvm/lib/IR/Verifier.cpp