[all-commits] [llvm/llvm-project] 021d56: [SVE] Make Constant::getSplatValue work for scalab...

Christopher Tetreault via All-commits all-commits at lists.llvm.org
Tue Jul 7 13:46:20 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 021d56abb9ee3028cb88895144d71365e566c32f
      https://github.com/llvm/llvm-project/commit/021d56abb9ee3028cb88895144d71365e566c32f
  Author: Christopher Tetreault <ctetreau at quicinc.com>
  Date:   2020-07-07 (Tue, 07 Jul 2020)

  Changed paths:
    M llvm/lib/IR/Constants.cpp
    M llvm/test/Transforms/InstSimplify/vscale.ll
    M llvm/unittests/IR/ConstantsTest.cpp

  Log Message:
  -----------
  [SVE] Make Constant::getSplatValue work for scalable vector splats

Summary:
Make Constant::getSplatValue recognize scalable vector splats of the
form created by ConstantVector::getSplat. Add unit test to verify that
C == ConstantVector::getSplat(C)->getSplatValue() for fixed width and
scalable vector splats

Reviewers: efriedma, spatel, fpetrogalli, c-rhodes

Reviewed By: efriedma

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

Tags: #llvm

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




More information about the All-commits mailing list