[all-commits] [llvm/llvm-project] 2eb558: [SLP] Check for PHI nodes (potentially cycles!) wh...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Fri Feb 14 14:33:13 PST 2025


  Branch: refs/heads/release/20.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 2eb558c99d967af093340def231c9a1ba228571b
      https://github.com/llvm/llvm-project/commit/2eb558c99d967af093340def231c9a1ba228571b
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2025-02-14 (Fri, 14 Feb 2025)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/SLPVectorizer/X86/delayed-gather-emission.ll
    M llvm/test/Transforms/SLPVectorizer/X86/matching-gather-nodes-phi-users.ll
    A llvm/test/Transforms/SLPVectorizer/X86/phi-node-with-cycle.ll

  Log Message:
  -----------
  [SLP] Check for PHI nodes (potentially cycles!) when checking dependencies

When checking for dependecies for gather nodes with users with the same
last instruction, cannot rely on the index order, if there is (even
potential!) cycle in the graph, which may cause order not work correctly
and cause compiler crash.

Fixes #127128

(cherry picked from commit ac217ee389d63124432e5e6890851a678f7a676b)



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