[all-commits] [llvm/llvm-project] 73cdbb: [DAG] combineInsertEltToShuffle - split off mergeI...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Wed Jan 18 03:57:41 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 73cdbbea02ac2f5470916520e92ede75e13fae06
      https://github.com/llvm/llvm-project/commit/73cdbbea02ac2f5470916520e92ede75e13fae06
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2023-01-18 (Wed, 18 Jan 2023)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

  Log Message:
  -----------
  [DAG] combineInsertEltToShuffle - split off mergeInsertEltWithShuffle fold. NFC.

combineInsertEltToShuffle was performing 2 very different folds in the same call, merging "(insert_vector_elt (vector_shuffle X, Y), (extract_vector_elt X, N), IdxC) --> (vector_shuffle X, Y)" and "(insert_vector_elt V, (bitcast X from vector type), IdxC) --> bitcast(shuffle (bitcast V), (extended X), Mask)"

The folds are currently still attempted in the same order as before (just as 2 seperate calls) so there should be no change in behaviour.

First step towards some adjustments to mergeInsertEltWithShuffle for D127115.




More information about the All-commits mailing list