[all-commits] [llvm/llvm-project] bae411: [DAG] replaceShuffleOfInsert - add support for shu...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Feb 27 00:42:21 PST 2025


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

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/test/CodeGen/PowerPC/v4i32_scalar_to_vector_shuffle.ll

  Log Message:
  -----------
  [DAG] replaceShuffleOfInsert - add support for shuffle_vector(scalar_to_vector(x),y) -> insert_vector_elt(y,x,c) (#127210)

Begin extending replaceShuffleOfInsert to handle other forms of scalar insertion into a vector.

I've limited this to targets that have Custom/Legal ISD::INSERT_VECTOR_ELT handling for now - although we can probably always fold this before LegalOperations.



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