[all-commits] [llvm/llvm-project] 0da2ae: [SLP]Invalid cost for non-power-of-2 bswaps (#185407)

Alexey Bataev via All-commits all-commits at lists.llvm.org
Mon Mar 9 08:07:30 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0da2aecb01412588c571038d7c887674c291a08f
      https://github.com/llvm/llvm-project/commit/0da2aecb01412588c571038d7c887674c291a08f
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2026-03-09 (Mon, 09 Mar 2026)

  Changed paths:
    M llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
    A llvm/test/Transforms/SLPVectorizer/non-power-of-2-bswap.ll

  Log Message:
  -----------
  [SLP]Invalid cost for non-power-of-2 bswaps (#185407)

bswaps are supported only for power-of-2 types, need to disable it for
the default cost model to fix a compiler crash.

Fixes
https://github.com/llvm/llvm-project/pull/184018#issuecomment-4022697189



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