[all-commits] [llvm/llvm-project] c7df35: [CodeGen] Fix warnings in getCopyToPartsVector
david-arm via All-commits
all-commits at lists.llvm.org
Thu Jul 2 01:08:47 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: c7df35d2b28eae824cded70663a2becf359a5402
https://github.com/llvm/llvm-project/commit/c7df35d2b28eae824cded70663a2becf359a5402
Author: David Sherwood <david.sherwood at arm.com>
Date: 2020-07-02 (Thu, 02 Jul 2020)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
Log Message:
-----------
[CodeGen] Fix warnings in getCopyToPartsVector
Whilst trying to assemble the following test:
clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_set2.c
I discovered we were hitting some warnings about possible invalid
calls to getVectorNumElements() in getCopyToPartsVector(). I've
tried to fix these by using ElementCount types where possible and
I've made the assumption that we don't support using a fixed width
vector to copy parts of a scalable vector, and vice versa. Looking
at how the copy is implemented I think that's the right thing for
now.
Differential Revision: https://reviews.llvm.org/D82744
More information about the All-commits
mailing list