diff options
author | Christopher Tetreault <ctetreau@quicinc.com> | 2020-05-07 08:34:55 -0700 |
---|---|---|
committer | Christopher Tetreault <ctetreau@quicinc.com> | 2020-05-07 08:46:51 -0700 |
commit | b6c6bab9a5b4e83e14883767cc9d3fb352574878 (patch) | |
tree | 61831bba0a143dfe10f6fcaa244f3e1d30b770f5 /llvm/lib/CodeGen/ModuloSchedule.cpp | |
parent | c1dc994083fae1b1efc4f49b544c8a6f96c910b2 (diff) | |
download | llvm-b6c6bab9a5b4e83e14883767cc9d3fb352574878.zip llvm-b6c6bab9a5b4e83e14883767cc9d3fb352574878.tar.gz llvm-b6c6bab9a5b4e83e14883767cc9d3fb352574878.tar.bz2 |
[SVE] Fix incorrect usage of getNumElements() in InstCombineCalls
Summary:
Remove incorrect usage of getNumElements() from visitCallInst(). The
number of elements was being used to construct a DemandedElts bitfield.
This operation does not make sense for scalable vectors. Cast to
FixedVectorType
Identified by test case Clang :: CodeGen/aarch64-sve-intrinsics/acle_sve_mla.c
Reviewers: rengolin, efriedma, sdesmalen, c-rhodes, david-arm
Reviewed By: david-arm
Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D79524
Diffstat (limited to 'llvm/lib/CodeGen/ModuloSchedule.cpp')
0 files changed, 0 insertions, 0 deletions