[SVE][CodeGen] Fix TypeSize/ElementCount related warnings in sve-split-load.ll
authorDavid Sherwood <david.sherwood@arm.com>
Wed, 26 Aug 2020 09:34:31 +0000 (10:34 +0100)
committerDavid Sherwood <david.sherwood@arm.com>
Tue, 1 Sep 2020 06:47:59 +0000 (07:47 +0100)
commit9fbb113247a5c09d319760d3f0e1768dfdbadfa4
treecd1a438fffa7246266debb5e80e72f4c9d776b58
parentffd0b31c7cbaa8322d2963afe6ace4e3a0889ddb
[SVE][CodeGen] Fix TypeSize/ElementCount related warnings in sve-split-load.ll

I have fixed up a number of warnings resulting from TypeSize -> uint64_t
casts and calling getVectorNumElements() on scalable vector types. I
think most of the changes are fairly trivial except for those in
DAGTypeLegalizer::SplitVecRes_MLOAD I've tried to ensure we create
the MachineMemoryOperands in a sensible way for scalable vectors.

I have added a CHECK line to the following test:

  CodeGen/AArch64/sve-split-load.ll

that ensures no new warnings are added.

Differential Revision: https://reviews.llvm.org/D86697
llvm/include/llvm/Support/TypeSize.h
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/test/CodeGen/AArch64/sve-split-load.ll