[all-commits] [llvm/llvm-project] b9d3da: [SLP]Fix PR105904: the root node might be a gather...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Mon Aug 26 07:09:43 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b9d3da8c8d277a7fc2223c659122bb377a0e54e0
      https://github.com/llvm/llvm-project/commit/b9d3da8c8d277a7fc2223c659122bb377a0e54e0
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2024-08-26 (Mon, 26 Aug 2024)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    A llvm/test/Transforms/SLPVectorizer/RISCV/gather-node-with-no-users.ll

  Log Message:
  -----------
  [SLP]Fix PR105904: the root node might be a gather node without user for reductions.

Before checking the user components of the gather/buildvector nodes,
need to check if the node has users at all. Root nodes might not have
users, if it is a node for the reduction.

Fixes https://github.com/llvm/llvm-project/issues/105904



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list