[all-commits] [llvm/llvm-project] 0be6fd: [SDAG] Use MMO flags in MemSDNode folding

Stanislav Mekhanoshin via All-commits all-commits at lists.llvm.org
Wed Mar 9 14:44:19 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0be6fd44f363d5756a3c796e1875567a037a0920
      https://github.com/llvm/llvm-project/commit/0be6fd44f363d5756a3c796e1875567a037a0920
  Author: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
  Date:   2022-03-09 (Wed, 09 Mar 2022)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
    A llvm/test/CodeGen/AMDGPU/mmo-target-flags-folding.ll

  Log Message:
  -----------
  [SDAG] Use MMO flags in MemSDNode folding

SDNodes with different target flags may now be folded together
rightfully resulting in the assertion in the refineAlignment.
Folding nodes with different target flags may result in the
wrong load instructions produced at least on the AMDGPU.

Fixes: SWDEV-326805

Differential Revision: https://reviews.llvm.org/D121335




More information about the All-commits mailing list