[all-commits] [llvm/llvm-project] 33cc73: [X86] Split 128 and 256-bit PTEST combines

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Apr 13 11:40:11 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 33cc733bc46b49e3198843257152c95b07e17471
      https://github.com/llvm/llvm-project/commit/33cc733bc46b49e3198843257152c95b07e17471
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2023-04-13 (Thu, 13 Apr 2023)

  Changed paths:
    A llvm/test/CodeGen/X86/combine-ptest-256.ll
    M llvm/test/CodeGen/X86/combine-ptest.ll

  Log Message:
  -----------
  [X86] Split 128 and 256-bit PTEST combines

We are missing SSE41 test coverage (and in fact have a bug with a PTEST->TESTP fold that is only valid on AVX).


  Commit: 7ea34403f3945506b25847f893ac28c70be172a0
      https://github.com/llvm/llvm-project/commit/7ea34403f3945506b25847f893ac28c70be172a0
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2023-04-13 (Thu, 13 Apr 2023)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/combine-ptest.ll

  Log Message:
  -----------
  [X86] Only fold PTEST->TESTP on AVX targets

While PTEST is a SSE41 instruction, TESTPS/TESTPD was only added for AVX


Compare: https://github.com/llvm/llvm-project/compare/a4eff2b56cb8...7ea34403f394


More information about the All-commits mailing list