[all-commits] [llvm/llvm-project] 4d2b0e: [X86] detectAVGPattern - use matchUnaryPredicate h...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sun May 3 03:29:41 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4d2b0ebd170d228a17a1096b14be55e22383ceb7
      https://github.com/llvm/llvm-project/commit/4d2b0ebd170d228a17a1096b14be55e22383ceb7
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-05-03 (Sun, 03 May 2020)

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

  Log Message:
  -----------
  [X86] detectAVGPattern - use matchUnaryPredicate helper. NFC.

Use the ISD::matchUnaryPredicate helper to check for inrange constants.


  Commit: 74e9952c8ecdf7c4869b945470f8f89978a879ca
      https://github.com/llvm/llvm-project/commit/74e9952c8ecdf7c4869b945470f8f89978a879ca
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-05-03 (Sun, 03 May 2020)

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

  Log Message:
  -----------
  [X86][SSE] splitAndLowerShuffle - use splitVector helper. NFC.

The splitVector helper uses extractSubVector which splits build vectors like we do here, so avoid reimplementing it.

splitVector could easily be extended to peek through bitcasts as well but I'd prefer to keep this commit NFC.


Compare: https://github.com/llvm/llvm-project/compare/7cf0f8568cea...74e9952c8ecd


More information about the All-commits mailing list