Clang performs some optimizations/shortcuts for const qualified aggregate variables while generating them on the stack. It bypasses the generation of alloca instructions and their uses are replaced by accesses to the initializer global variable directly instead.
In OpenCL we can only do this if a variable is qualified with a constant address space.
can we merge this if with the above if?