[SLP]Adjust GEP indices types when trying to build entries.
authorAlexey Bataev <a.bataev@outlook.com>
Fri, 12 Nov 2021 19:22:12 +0000 (11:22 -0800)
committerAlexey Bataev <a.bataev@outlook.com>
Tue, 16 Nov 2021 13:44:33 +0000 (05:44 -0800)
commitaa9bbb64becda3d74ae922b3c0c875649f4ebbce
tree536c38609aeec68942298afdf66ef0d79b2eb03c
parent51c0b6843a192ec3bb8d75047a74457a3171c6fc
[SLP]Adjust GEP indices types when trying to build entries.

Need to adjust the types of GEPs indices when building the tree
entries/operands. Otherwise some of the nodes might differ and
vectorizer is unable to correctly find them and count their cost.

Differential Revision: https://reviews.llvm.org/D113792
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp