[all-commits] [llvm/llvm-project] 1cecc5: [NVPTX] instcombine known pointer AS checks. (#112...

Artem Belevich via All-commits all-commits at lists.llvm.org
Wed Oct 30 15:13:27 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1cecc58c3f15e3d0fe97b7f764d498e4005557e0
      https://github.com/llvm/llvm-project/commit/1cecc58c3f15e3d0fe97b7f764d498e4005557e0
  Author: Artem Belevich <tra at google.com>
  Date:   2024-10-30 (Wed, 30 Oct 2024)

  Changed paths:
    A llvm/include/llvm/Support/NVPTXAddrSpace.h
    M llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXBaseInfo.h
    M llvm/lib/Target/NVPTX/NVPTXTargetTransformInfo.cpp
    A llvm/test/Transforms/InstCombine/NVPTX/isspacep.ll

  Log Message:
  -----------
  [NVPTX] instcombine known pointer AS checks. (#112964)

The change improves the code in general and, as a side effect, avoids crashing
on an impossible address space casts guarded by `__isGlobal/__isShared`, which
partially fixes https://github.com/llvm/llvm-project/issues/112760
It's still possible to trigger the issue by using explicit AS casts w/o
AS checks, but LLVM should no longer crash on valid code.



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