[SVE] Remove invalid usage of VectorType::getNumElements in Function
authorChristopher Tetreault <ctetreau@quicinc.com>
Tue, 28 Apr 2020 19:39:59 +0000 (12:39 -0700)
committerChristopher Tetreault <ctetreau@quicinc.com>
Tue, 28 Apr 2020 19:59:26 +0000 (12:59 -0700)
commit2e214baed929ab4e38feb34fd1451d759821e4f5
treeda071ce326c86634e92f90b0d10a4bb26221aeee
parent95e570725a1423fcb7d6c1aa7eeed64c4a806436
[SVE] Remove invalid usage of VectorType::getNumElements in Function

Summary:
Removes usage of VectorType::getNumElements identified by test located
at CodeGen/aarch64-sve-intrinsics/acle_sve_dot.c. This code explicitly
converts a potentially fixed length vector to scalable vector by
constructing the ElementCount = {getNumElements(), true}

Reviewers: rengolin, efriedma, kmclaughlin, c-rhodes, sdesmalen

Reviewed By: efriedma

Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D78967
llvm/lib/IR/Function.cpp