[SLP][NFC]Improve SLP time by precomputing value<->gather nodes
authorAlexey Bataev <a.bataev@outlook.com>
Fri, 7 Apr 2023 18:22:27 +0000 (11:22 -0700)
committerAlexey Bataev <a.bataev@outlook.com>
Fri, 7 Apr 2023 19:12:02 +0000 (12:12 -0700)
commit6ff177d928d809dec637d7d5e32aad416b8d7778
treeb481b679d8fbcdf72cd7a91c4f700daefa44f896
parentc6afeda866bf7ad6e1148e18c1bb1423ff4b2811
[SLP][NFC]Improve SLP time by precomputing value<->gather nodes
dependencies.

Improved compiled time by the precomputing the mapping between gathered
scalars and their gather/buildvector nodes for later use in
isGatherShuffledEntry to avoid recomputing this map each time this
function is called.
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp