[all-commits] [llvm/llvm-project] b6c6ba: [SVE] Fix incorrect usage of getNumElements() in I...

Christopher Tetreault via All-commits all-commits at lists.llvm.org
Thu May 7 08:47:29 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b6c6bab9a5b4e83e14883767cc9d3fb352574878
      https://github.com/llvm/llvm-project/commit/b6c6bab9a5b4e83e14883767cc9d3fb352574878
  Author: Christopher Tetreault <ctetreau at quicinc.com>
  Date:   2020-05-07 (Thu, 07 May 2020)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp

  Log Message:
  -----------
  [SVE] Fix incorrect usage of getNumElements() in InstCombineCalls

Summary:
Remove incorrect usage of getNumElements() from visitCallInst(). The
number of elements was being used to construct a DemandedElts bitfield.
This operation does not make sense for scalable vectors. Cast to
FixedVectorType

Identified by test case Clang :: CodeGen/aarch64-sve-intrinsics/acle_sve_mla.c

Reviewers: rengolin, efriedma, sdesmalen, c-rhodes, david-arm

Reviewed By: david-arm

Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list