[all-commits] [llvm/llvm-project] 3b7f3d: [SVE] Remove invalid usage of getNumElements in In...

Christopher Tetreault via All-commits all-commits at lists.llvm.org
Mon May 4 08:37:18 PDT 2020


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

  Changed paths:
    M llvm/lib/IR/Instructions.cpp

  Log Message:
  -----------
  [SVE] Remove invalid usage of getNumElements in Instructions

Summary:
Remove invalid usage of VectorType::getNumElements in
ShuffleVectorInst::isValidOperands identified by test case
llvm::Analysis/ConstantFolding/vscale-shufflevector.ll. The tested
conditions hold for both fixed width and scalable vectors; use
getElementCount().

Reviewers: efriedma, sdesmalen, c-rhodes, spatel

Reviewed By: sdesmalen

Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list