diff options
author | David Sherwood <david.sherwood@arm.com> | 2020-06-16 14:12:38 +0100 |
---|---|---|
committer | David Sherwood <david.sherwood@arm.com> | 2020-06-18 09:29:37 +0100 |
commit | 65912a9768e035c7987d7a8932157978c6b22a15 (patch) | |
tree | b86834948357587d978abcd7234eb4a638a170a6 /llvm/lib/CodeGen/TargetLoweringBase.cpp | |
parent | f9c7e3136ed9c5193699133c0b7deb75cfcfbec0 (diff) | |
download | llvm-65912a9768e035c7987d7a8932157978c6b22a15.zip llvm-65912a9768e035c7987d7a8932157978c6b22a15.tar.gz llvm-65912a9768e035c7987d7a8932157978c6b22a15.tar.bz2 |
[CodeGen] Fix warnings in foldCONCAT_VECTORS
Instead of asserting the number of elements is the same, we should be
comparing the element counts instead. In addition, when looking at
concats of extract_subvectors it's fine to use getVectorMinNumElements()
for scalable vectors.
I discovered these warnings when compiling the structured loads tests in
this file:
test/CodeGen/AArch64/sve-intrinsics-loads.ll
Differential Revision: https://reviews.llvm.org/D81936
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringBase.cpp')
0 files changed, 0 insertions, 0 deletions