[all-commits] [llvm/llvm-project] b4c660: [VectorCombine][X86] Add test showing foldShuffleO...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Tue Apr 23 03:17:54 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b4c6607add8bba778b0a278ce7d069c057219eed
      https://github.com/llvm/llvm-project/commit/b4c6607add8bba778b0a278ce7d069c057219eed
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2024-04-23 (Tue, 23 Apr 2024)

  Changed paths:
    M llvm/test/Transforms/VectorCombine/X86/shuffle-of-shuffles.ll

  Log Message:
  -----------
  [VectorCombine][X86] Add test showing foldShuffleOfShuffles folding shuffles that would be better separate

On AVX+ targets a broadcast load can be treated as free.


  Commit: a9e87304a3da9ef8ab0f9e035b0c480f8dd4c017
      https://github.com/llvm/llvm-project/commit/a9e87304a3da9ef8ab0f9e035b0c480f8dd4c017
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2024-04-23 (Tue, 23 Apr 2024)

  Changed paths:
    A llvm/test/Analysis/CostModel/X86/load-broadcast.ll

  Log Message:
  -----------
  [CostModel][X86] Add costs test coverage for broadcast loads

Broadcast shuffles can be free is fed from a one-use load


  Commit: f89f670d92b5726fc61bf8252a6ecc273086c501
      https://github.com/llvm/llvm-project/commit/f89f670d92b5726fc61bf8252a6ecc273086c501
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2024-04-23 (Tue, 23 Apr 2024)

  Changed paths:
    M llvm/lib/Target/X86/X86TargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/X86/load-broadcast.ll

  Log Message:
  -----------
  [CostModel][X86] Broadcast shuffles can be free if they are from a one-use load

AVX1+ can handle 32/64-bit broadcast loads, AVX2+ can handle all broadcast loads (we should be able to improve isLegalBroadcastLoad to handle more of this type matching).


Compare: https://github.com/llvm/llvm-project/compare/132bf4aedd67...f89f670d92b5

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