Reland "[NFC][SROA] `speculateSelectInstLoads()`: play nice with typed pointers for...
authorRoman Lebedev <lebedev.ri@gmail.com>
Wed, 21 Dec 2022 21:08:16 +0000 (00:08 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Wed, 21 Dec 2022 21:47:40 +0000 (00:47 +0300)
commit2cb393590ea537b06fa66e6d847a1159c227a313
tree96c2aaff4b55a4d1e58abd9d5dc6e8a0e7534768
parent19a004b46882f02ed5488f691abbbdc83bcc3ce4
Reland "[NFC][SROA] `speculateSelectInstLoads()`: play nice with typed pointers for now"

This reverts commit bf88ba0f8718c1e89e28e977839ad0a6186d44fe,
relands 9f27f4536e19e93349b0662338408efe6d1cb2fd, but without a bug:
we *REALLY* should not be defaulting to address space 0
when address space is not specified...
llvm/lib/Transforms/Scalar/SROA.cpp