https://bugs.llvm.org/show_bug.cgi?id=38113

            Bug ID: 38113
           Summary: aliasing pointer analsyis broken with 32-bit pointers
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: AMDGPU
          Assignee: unassignedb...@nondot.org
          Reporter: airl...@gmail.com
                CC: llvm-bugs@lists.llvm.org

radv has just started adding support for KHR_variable_pointers vulkan
extension,
however some tests are crashing in llvm with a "Pointer address space out of
range" error.

This is due to a select on 2 pointers in the 32-bit constant address space (6).
However the code in lib/Target/AMDGPU/AMDGPUAliasAnalysis.cpp checks up to
MAX_COMMON_ADDRESS which is 5 and throws the error for amdgcn. However this
looks like the code hasn't really be updated to handle 32-bit address space
pointers.

https://reviews.llvm.org/D31520

was the change that added this.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to