[all-commits] [llvm/llvm-project] db8807: [CostModel][X86] Attempt to match cheap v4f32 shuf...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Jan 6 09:54:58 PST 2025


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

  Changed paths:
    M llvm/lib/Target/X86/X86TargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/X86/alternate-shuffle-cost.ll
    M llvm/test/Analysis/CostModel/X86/reduction.ll
    M llvm/test/Analysis/CostModel/X86/shuffle-insert_subvector-codesize.ll
    M llvm/test/Analysis/CostModel/X86/shuffle-insert_subvector-latency.ll
    M llvm/test/Analysis/CostModel/X86/shuffle-insert_subvector-sizelatency.ll
    M llvm/test/Analysis/CostModel/X86/shuffle-insert_subvector.ll
    M llvm/test/Analysis/CostModel/X86/shuffle-splice-codesize.ll
    M llvm/test/Analysis/CostModel/X86/shuffle-splice-latency.ll
    M llvm/test/Analysis/CostModel/X86/shuffle-splice-sizelatency.ll
    M llvm/test/Analysis/CostModel/X86/shuffle-splice.ll
    M llvm/test/Transforms/PhaseOrdering/X86/hadd.ll
    M llvm/test/Transforms/PhaseOrdering/X86/hsub.ll
    M llvm/test/Transforms/VectorCombine/X86/shuffle-of-cmps.ll

  Log Message:
  -----------
  [CostModel][X86] Attempt to match cheap v4f32 shuffles that map to SHUFPS instruction (#121778)

Avoid always assuming the worst for v4f32 2 input shuffles, and match the SHUFPS pattern where possible - each pair of output elements must come from the same source register.



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