[all-commits] [llvm/llvm-project] 2e58d9: [NVPTX] Check Before inserting AddrSpaceCastInst i...

weiwei chen via All-commits all-commits at lists.llvm.org
Thu Sep 12 14:59:01 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e58d923a1a543166a2aa72d8b579bb5c7cc320b
      https://github.com/llvm/llvm-project/commit/2e58d923a1a543166a2aa72d8b579bb5c7cc320b
  Author: weiwei chen <weiwei.chen at modular.com>
  Date:   2024-09-12 (Thu, 12 Sep 2024)

  Changed paths:
    M llvm/lib/Target/NVPTX/NVPTXLowerAlloca.cpp
    M llvm/test/CodeGen/NVPTX/lower-alloca.ll

  Log Message:
  -----------
  [NVPTX] Check Before inserting AddrSpaceCastInst in NVPTXLoweringAlloca (#106127)

If `allocaInst` is already in `ADDRESS_SPACE_LOCAL`, there is no need to
do an explicit cast which will actually fail assertion with
`AddrSpaceCastInst`. Only insert the cast when needed.



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