[all-commits] [llvm/llvm-project] fff12f: [VectorCombine] Fix the type used in foldShuffleOf...

David Green via All-commits all-commits at lists.llvm.org
Fri May 9 00:55:58 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fff12fbdb9a20d353cc578076232dcb3f5c60586
      https://github.com/llvm/llvm-project/commit/fff12fbdb9a20d353cc578076232dcb3f5c60586
  Author: David Green <david.green at arm.com>
  Date:   2025-05-09 (Fri, 09 May 2025)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VectorCombine.cpp
    M llvm/test/Transforms/VectorCombine/X86/shuffle-of-intrinsics.ll

  Log Message:
  -----------
  [VectorCombine] Fix the type used in foldShuffleOfIntrinsics Cost. (#138419)

The shuffle needn't be twice the original number of vector elements, so
the intermediate type used between the shuffle and the intrinsic should
use the ShuffleDstTy number of elements.

I found this when looking at shuffle costs and do not have test where it
alters the output, but have added some cases where the shuffle output is
not twice the size of the input.



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