[InstCombine] Make indexed compare fold opaque ptr compatible
We need to make sure that the GEP source element types match. A caveat here is that the used GEP source element type can be arbitrary if no offset is stripped from the original GEP -- the transform is somewhat inconsistent in that it always starts from a GEP, but might not actually look through it if it has multiple indices.
Loading
Please sign in to comment