[InstCombine] Use GEP type instead of pointee type
authorNikita Popov <npopov@redhat.com>
Tue, 28 Dec 2021 13:57:43 +0000 (14:57 +0100)
committerNikita Popov <npopov@redhat.com>
Tue, 28 Dec 2021 13:57:43 +0000 (14:57 +0100)
commite6f31f4e51df484e2f34c6c9cfd8d791cdee2eb0
tree281719e9515d5f6f404ca7af7defa1ea0ea55ae1
parent3bfe0962bac6147a34aa5d2dc7b6cd4968ac975a
[InstCombine] Use GEP type instead of pointee type

The GEP source type is independent of whether it is a scalar or
vector GEP, as such we can simply preserve it.
llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp