[all-commits] [llvm/llvm-project] fa0293: [SVE][CodeGen] Fix TypeSize/ElementCount related w...

david-arm via All-commits all-commits at lists.llvm.org
Mon Oct 5 11:27:34 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: fa0293081d62295140f8518cc7127473d6856cda
      https://github.com/llvm/llvm-project/commit/fa0293081d62295140f8518cc7127473d6856cda
  Author: David Sherwood <david.sherwood at arm.com>
  Date:   2020-10-05 (Mon, 05 Oct 2020)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
    M llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
    M llvm/test/CodeGen/AArch64/sve-split-store.ll

  Log Message:
  -----------
  [SVE][CodeGen] Fix TypeSize/ElementCount related warnings in sve-split-store.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_MSTORE 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-store.ll

that ensures no new warnings are added.

Differential Revision: https://reviews.llvm.org/D86928




More information about the All-commits mailing list