[PATCH] D112466: [NVPTX] Drop memory references of LDG/LDU
    Andrew Savonichev via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Jan 11 10:29:38 PST 2023
    
    
  
asavonic added a comment.
I think the current patch is the way to go: we want to treat LDU and LDG as regular instructions and exclude them from memory analysis. Therefore memory references are not needed and we can drop them.
`pointsToConstantMemory` or other AA functions do not seem to cover this case, because they operate on memory locations (pointers), and not on instructions themselves. Pointer operands for LDU and LDG are from global address space, and if I'm reading the PTX spec right, LDU can also load from generic address space.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D112466/new/
https://reviews.llvm.org/D112466
    
    
More information about the llvm-commits
mailing list