[SLP][NFC]Improve compile-time by using map {TreeEntry *, Instruction *}
authorAlexey Bataev <a.bataev@outlook.com>
Mon, 17 Jul 2023 16:47:01 +0000 (09:47 -0700)
committerAlexey Bataev <a.bataev@outlook.com>
Mon, 17 Jul 2023 18:36:21 +0000 (11:36 -0700)
commit0d21b7cbdeb2f2eb5ef123a15099da0b651b24c0
tree55a7d1f2039ffa25ff029b5aa13798db55fb93e8
parent80a54edc14c61fcffc96f46cd6192b5a18fb1d83
[SLP][NFC]Improve compile-time by using map {TreeEntry *, Instruction *}
in getLastInstructionInBundle(), NFC.

Instead of building EntryToLastInstruction before the vectorization,
build it automatically during the calls to getLastInstructionInBundle()
function.
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp