[all-commits] [llvm/llvm-project] 8b8266: [X86][SSE] Move unaryshuffle(xor(x, -1)) -> xor(una...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Feb 25 02:56:45 PST 2021


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

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

  Log Message:
  -----------
  [X86][SSE] Move unaryshuffle(xor(x,-1)) -> xor(unaryshuffle(x),-1) fold into helper. NFCI.

We should be able to extend this "canonicalizeShuffleWithBinOps" to handle more generic binop cases where either/both operands can be cheaply shuffled.




More information about the All-commits mailing list