[all-commits] [llvm/llvm-project] 2fa450: [SLP]Fix crash from runtime alias check reusing bo...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Wed Aug 5 05:20:58 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2fa45081bc8c1d13099684f27d73eb52889ec472
      https://github.com/llvm/llvm-project/commit/2fa45081bc8c1d13099684f27d73eb52889ec472
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2026-08-05 (Wed, 05 Aug 2026)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/test/Transforms/SLPVectorizer/AArch64/runtime-alias-checks-scheduled-order.ll

  Log Message:
  -----------
  [SLP]Fix crash from runtime alias check reusing body scalars

Emit the check at the block's first insertion point instead of before
the terminator. SCEV expansion reuses any dominating instruction, so
at the terminator it could pick up body scalars that are later moved
into the vector block and deleted, causing a crash.

Reviewers: 

Pull Request: https://github.com/llvm/llvm-project/pull/214211



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