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

Matt Arsenault via All-commits all-commits at lists.llvm.org
Tue Oct 29 11:29:00 PDT 2024


  Branch: refs/heads/users/arsenm/amdgpu-fix-promote-alloca-vector-gep-verifier-error
  Home:   https://github.com/llvm/llvm-project
  Commit: be705d086aa6fe501c7fc3c80d1ac63711e205f8
      https://github.com/llvm/llvm-project/commit/be705d086aa6fe501c7fc3c80d1ac63711e205f8
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2024-10-29 (Tue, 29 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