[all-commits] [llvm/llvm-project] 0a0ee7: [X86] canonicalizeShuffleMaskWithHorizOp - minor r...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Wed Jan 13 06:01:21 PST 2021


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

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp

  Log Message:
  -----------
  [X86] canonicalizeShuffleMaskWithHorizOp - minor refactor to support multiple src ops. NFCI.

canonicalizeShuffleMaskWithHorizOp currently only supports shuffles with 1 or 2 sources, but PR41813 will require us to support higher numbers of sources.

This patch just generalizes the initial setup stages to ensure all src ops are the same type and opcode and then will continue to early out if we have more than 2 sources.




More information about the All-commits mailing list