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

Alexey Bataev via All-commits all-commits at lists.llvm.org
Mon Feb 24 21:00:25 PST 2025


  Branch: refs/heads/release/20.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 098492a228f781a37997637e0953fd4e7faa2193
      https://github.com/llvm/llvm-project/commit/098492a228f781a37997637e0953fd4e7faa2193
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2025-02-24 (Mon, 24 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
    M llvm/test/Transforms/SLPVectorizer/X86/perfect-matched-reused-bv.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