[all-commits] [llvm/llvm-project] 65912a: [CodeGen] Fix warnings in foldCONCAT_VECTORS

david-arm via All-commits all-commits at lists.llvm.org
Thu Jun 18 01:30:09 PDT 2020


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

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list