GlobalOpt implements a heap SROA (SROA for an malloc allocatated struct or array
of structs) which is largely undertested (heap-sra-[1234].ll are basically the
same test with very little difference) and does not trigger at all when
bootstrapping clang (it only supports the case of one single store).
The heap SROA implementation causes PR50027 (GEP is not properly handled; crash or miscompile).
Just drop the implementation. I have deleted some obviously duplicated tests
but kept heap-sra-[12]{,-no-nullopt}.ll.
these could still be used to get to OptimizeGlobalAddressOfMalloc, why are these being deleted?
if you are deleting the Phi part, PHIs is no longer used