[all-commits] [llvm/llvm-project] 38c949: AMDGPU: Fix producing invalid IR on vector typed g...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Tue Oct 29 19:43:45 PDT 2024


  Branch: refs/heads/users/arsenm/amdgpu-fix-promote-alloca-vector-gep-verifier-error
  Home:   https://github.com/llvm/llvm-project
  Commit: 38c949df502301c48b8de7984c718d59efa4e6e1
      https://github.com/llvm/llvm-project/commit/38c949df502301c48b8de7984c718d59efa4e6e1
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2024-10-30 (Wed, 30 Oct 2024)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
    A llvm/test/CodeGen/AMDGPU/promote-alloca-invalid-vector-gep.ll

  Log Message:
  -----------
  AMDGPU: Fix producing invalid IR on vector typed getelementptr

This did not consider the IR change to allow a scalar base with a vector
offset part. Reject any users that are not explicitly handled.

In this situation we could handle the vector GEP, but that is a larger
change. This just avoids the IR verifier error by rejecting it.



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