[all-commits] [llvm/llvm-project] 8359db: [X86] combineEXTRACT_SUBVECTOR - fold extract_subv...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Wed Feb 12 01:07:27 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8359dbc8c08ca4206534d605dd299713dc323b67
      https://github.com/llvm/llvm-project/commit/8359dbc8c08ca4206534d605dd299713dc323b67
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2025-02-12 (Wed, 12 Feb 2025)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/any_extend_vector_inreg_of_broadcast_from_memory.ll
    M llvm/test/CodeGen/X86/zero_extend_vector_inreg_of_broadcast_from_memory.ll

  Log Message:
  -----------
  [X86] combineEXTRACT_SUBVECTOR - fold extract_subvector(subv_broadcast_load(ptr),0) -> load(ptr) (#126523)

This is typically handled by SimplifyDemandedVectorElts, but this will
fail when there are multiple uses of the subv_broadcast_load node, but
if there's just one use of the load result (and the rest are uses of the
memory chain), we can still replace with a load and update the chain
accordingly.

Noticed on #126517



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