[all-commits] [llvm/llvm-project] 42c7a6: [CodeGen] Fix incorrect uses of getVectorNumElemen...

david-arm via All-commits all-commits at lists.llvm.org
Mon May 11 23:51:17 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 42c7a6d52ba052a195825e81668d88487b3f26cc
      https://github.com/llvm/llvm-project/commit/42c7a6d52ba052a195825e81668d88487b3f26cc
  Author: David Sherwood <david.sherwood at arm.com>
  Date:   2020-05-12 (Tue, 12 May 2020)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
    A llvm/test/CodeGen/AArch64/sve-trunc.ll

  Log Message:
  -----------
  [CodeGen] Fix incorrect uses of getVectorNumElements()

I have fixed up some places in SelectionDAG::getNode() where we
used to assert that the number of vector elements for two types
are the same. I have changed such cases to assert that the
element counts are the same instead. I've added new tests that
exercise the code paths for all the truncations. All the extend
operations are covered by this existing test:

  CodeGen/AArch64/sve-sext-zext.ll

For the ISD::SETCC case I fixed this code path is exercised by
these existing tests:

  CodeGen/AArch64/sve-fcmp.ll
  CodeGen/AArch64/sve-intrinsics-int-compares-with-imm.ll

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




More information about the All-commits mailing list