[all-commits] [llvm/llvm-project] 5a7dfb: [CostModel][X86] Attempt to match v4f32 shuffles t...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Tue Jan 7 03:32:19 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5a7dfb46598ebe21318312eca5f407a1575f87e0
      https://github.com/llvm/llvm-project/commit/5a7dfb46598ebe21318312eca5f407a1575f87e0
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2025-01-07 (Tue, 07 Jan 2025)

  Changed paths:
    M llvm/lib/Target/X86/X86TargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/X86/shuffle-two-src-codesize.ll
    M llvm/test/Analysis/CostModel/X86/shuffle-two-src-latency.ll
    M llvm/test/Analysis/CostModel/X86/shuffle-two-src-sizelatency.ll
    M llvm/test/Analysis/CostModel/X86/shuffle-two-src.ll
    M llvm/test/Transforms/PhaseOrdering/X86/hadd.ll
    M llvm/test/Transforms/PhaseOrdering/X86/hsub.ll
    M llvm/test/Transforms/VectorCombine/X86/extract-binop-inseltpoison.ll
    M llvm/test/Transforms/VectorCombine/X86/extract-binop.ll

  Log Message:
  -----------
  [CostModel][X86] Attempt to match v4f32 shuffles that map to MOVSS/INSERTPS instruction

improveShuffleKindFromMask matches this as a SK_InsertSubvector of a v1f32 (which legalises to f32) into a v4f32 base vector, making it easy to recognise. MOVSS is limited to index0.



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