[all-commits] [llvm/llvm-project] 7edf6b: [DAG][X86] Use pattern matching to simplify PSADBW...

woruyu via All-commits all-commits at lists.llvm.org
Wed Jul 9 02:26:34 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7edf6bfb54736ea040246e16ece9c784832a4062
      https://github.com/llvm/llvm-project/commit/7edf6bfb54736ea040246e16ece9c784832a4062
  Author: woruyu <99597449+woruyu at users.noreply.github.com>
  Date:   2025-07-09 (Wed, 09 Jul 2025)

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

  Log Message:
  -----------
  [DAG][X86] Use pattern matching to simplify PSADBW+ADD combine (#147637)

This patch refactors the add(psadbw(x, 0), psadbw(y, 0)) -> psadbw(x + y, 0) combine to use SDPatternMatch matchers instead of manually checking opcodes and operands.

Co-authored-by: Simon Pilgrim <llvm-dev at redking.me.uk>



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