[all-commits] [llvm/llvm-project] 79516d: AMDGPU: Fix assert from wrong address space size a...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Tue Jul 2 14:18:46 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 79516ddbee3a1d6c95cfbe6d14c790f741167165
      https://github.com/llvm/llvm-project/commit/79516ddbee3a1d6c95cfbe6d14c790f741167165
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2024-07-02 (Tue, 02 Jul 2024)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
    M llvm/test/CodeGen/AMDGPU/codegen-prepare-addrspacecast-non-null.ll

  Log Message:
  -----------
  AMDGPU: Fix assert from wrong address space size assumption (#97267)

This was assuming the source address space was at least as large
as the destination of the cast. I'm not sure why this was casting
to begin with; the assumption seems to be the source
address space from the root addrspacecast matches the underlying
object so directly check that.

Fixes #97457



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