[all-commits] [llvm/llvm-project] c01f28: AMDGPU: Fix regressions in integer mad matching

Matt Arsenault via All-commits all-commits at lists.llvm.org
Thu Jun 8 13:49:01 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c01f284fbbf4c93c65b1f92fb8b3d263afb796c0
      https://github.com/llvm/llvm-project/commit/c01f284fbbf4c93c65b1f92fb8b3d263afb796c0
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2023-06-08 (Thu, 08 Jun 2023)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
    M llvm/test/CodeGen/AMDGPU/reassoc-mul-add-1-to-mad.ll

  Log Message:
  -----------
  AMDGPU: Fix regressions in integer mad matching

Undo the canonicalize done in
0cfc6510323fbb5a56a5de23cbc65f7cc30fd34c. Restores some regressed
matching of integer mad. The selection patterns fo the actual mads
don't seem to be properly commuting, so some of the commuted cases are
still missed.

Fixes: SWDEV-363009




More information about the All-commits mailing list