[SystemZ] Avoid __INTPTR_TYPE__ conversions in vecintrin.h
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 28 Apr 2020 16:46:37 +0000 (18:46 +0200)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 28 Apr 2020 16:49:49 +0000 (18:49 +0200)
commit095ccf4455654750cd4c0296ff91565c2b613319
tree09c8cf98f69d199f8322cafb6ac051291368a06c
parentc90e09b13c9017e79b331e9f86f0f55d7a02777b
[SystemZ] Avoid __INTPTR_TYPE__ conversions in vecintrin.h

Some intrinsics in vecintrin.h are currently implemented by
performing address arithmetic in __INTPTR_TYPE__ and converting
the result to some pointer type.  While this works correctly,
it leads to suboptimal code generation since many optimizers
cannot trace the provenance of the resulting pointers.

Fixed by using "char *" pointer arithmetic instead.
clang/lib/Headers/vecintrin.h