[all-commits] [llvm/llvm-project] 11c16e: [X86][SSE] lowerShuffleAsBitRotate - lower to vXi8...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Tue Feb 11 04:21:34 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 11c16e71598d51f15b4cfd0f719c4dabcc0bebf7
      https://github.com/llvm/llvm-project/commit/11c16e71598d51f15b4cfd0f719c4dabcc0bebf7
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-02-11 (Tue, 11 Feb 2020)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/bitreverse.ll
    M llvm/test/CodeGen/X86/bswap-vector.ll
    M llvm/test/CodeGen/X86/vector-bitreverse.ll
    M llvm/test/CodeGen/X86/vector-shuffle-128-v16.ll

  Log Message:
  -----------
  [X86][SSE] lowerShuffleAsBitRotate - lower to vXi8 shuffles to ROTL on pre-SSSE3 targets

Without PSHUFB we are better using ROTL (expanding to OR(SHL,SRL)) than using the generic v16i8 shuffle lowering - but if we can widen to v8i16 or more then the existing shuffles are still the better option.




More information about the All-commits mailing list