[all-commits] [llvm/llvm-project] 85d15b: [TTI][X86] getMemoryOpCost - reduced costs when lo...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Wed Dec 4 08:36:21 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 85d15bd130930c96533419b0fc2e66d86b84af42
      https://github.com/llvm/llvm-project/commit/85d15bd130930c96533419b0fc2e66d86b84af42
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2024-12-04 (Wed, 04 Dec 2024)

  Changed paths:
    M llvm/lib/Target/X86/X86TargetTransformInfo.cpp
    M llvm/test/Transforms/SLPVectorizer/X86/store-constant.ll

  Log Message:
  -----------
  [TTI][X86] getMemoryOpCost - reduced costs when loading uniform values due to value reuse (#118642)

Similar to what we do for broadcast shuffles, when legalising load costs, if the value is known to be uniform, then we will only load a single vector and reuse this across the split legalised registers.

Fixes #111126



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