[all-commits] [llvm/llvm-project] 9a82bd: [RISCV] Fix assertion of getShuffleCost

Wang Pengcheng via All-commits all-commits at lists.llvm.org
Wed Aug 23 05:12:56 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9a82bda9dedff03348c906979da9b95c0934f902
      https://github.com/llvm/llvm-project/commit/9a82bda9dedff03348c906979da9b95c0934f902
  Author: wangpc <wangpengcheng.pp at bytedance.com>
  Date:   2023-08-23 (Wed, 23 Aug 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
    M llvm/test/Transforms/SLPVectorizer/RISCV/reductions.ll

  Log Message:
  -----------
  [RISCV] Fix assertion of getShuffleCost

This assertion is introduced by D157425.

We should calculate the cost iff `Mask` is not empty.

Fixes 64901

Reviewed By: ABataev

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




More information about the All-commits mailing list