SLPVectorizer: Lazily allocate the map for block numbering.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 3 May 2014 15:50:37 +0000 (15:50 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 3 May 2014 15:50:37 +0000 (15:50 +0000)
commit81f28f603ac31349643d132e50768b062d7675a2
treed29bba94069c8f365403a1fb014c7fba70a1f8f3
parent91ffe991a25d0719d97f92bd5097d97e25273ee6
SLPVectorizer: Lazily allocate the map for block numbering.

There is no point in creating it if we're not going to vectorize
anything. Creating the map is expensive as it creates large values.
No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207916 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/GlobalOpt.cpp
lib/Transforms/Vectorize/SLPVectorizer.cpp