[all-commits] [llvm/llvm-project] 3ffb44: [CodeGen] Fix warnings in getVectorElementCount()

david-arm via All-commits all-commits at lists.llvm.org
Thu Jun 18 00:03:17 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3ffb44b4481fe7bfaed67fe3e592908b9b4ad628
      https://github.com/llvm/llvm-project/commit/3ffb44b4481fe7bfaed67fe3e592908b9b4ad628
  Author: David Sherwood <david.sherwood at arm.com>
  Date:   2020-06-18 (Thu, 18 Jun 2020)

  Changed paths:
    M llvm/include/llvm/CodeGen/ValueTypes.h

  Log Message:
  -----------
  [CodeGen] Fix warnings in getVectorElementCount()

In EVT::getVectorElementCount() when the type is not simple we
should return getExtendedVectorElementCount() from the function
instead of constructing the ElementCount object manually.

I discovered this warning in an existing test:

  test/CodeGen/AArch64/sve-intrinsics-loads.ll

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




More information about the All-commits mailing list