[all-commits] [llvm/llvm-project] bb315b: [X86] Update (p)haddsub undef element tests to mat...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Fri Jul 3 03:38:54 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bb315b7e2953f02e1c8996b110752610e2187ce0
      https://github.com/llvm/llvm-project/commit/bb315b7e2953f02e1c8996b110752610e2187ce0
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2026-07-03 (Fri, 03 Jul 2026)

  Changed paths:
    M llvm/test/CodeGen/X86/haddsub-undef.ll
    M llvm/test/CodeGen/X86/phaddsub-undef.ll

  Log Message:
  -----------
  [X86] Update (p)haddsub undef element tests to match the output IR from the middle-end (#207244)

Use the vectorised output from the PhaseOrdering/X86 hadd.ll tests -
I've added test coverage for multiple SSE/AVX levels for cases where the
middle-end output is different for any level.

This exposes a number of regressions that have been there for some time
but we'd missed as we'd assumed the backend would still be receiving
non-vectorised IR, but there's been plenty of changes to SLP,
InstCombine and VectorCombine since then - end2end tests would have been
very useful here :(

Looking at fixes next before finally removing the (dead) scalar hadd
matching code for #143000



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list