SLPVectorizer: limit the number of alias checks to reduce the runtime.
authorErik Eckstein <eeckstein@apple.com>
Mon, 19 Jan 2015 09:33:38 +0000 (09:33 +0000)
committerErik Eckstein <eeckstein@apple.com>
Mon, 19 Jan 2015 09:33:38 +0000 (09:33 +0000)
commit04075c619b2d749e80cb2eaaf5ac6ba6a1bba322
treedeed2273b2c3ae44865bc0a61ddd3ac0f774366f
parente6e4c786b1a9aac0285ab248e3d804f4dadcdde3
SLPVectorizer: limit the number of alias checks to reduce the runtime.

In case of blocks with many memory-accessing instructions, alias checking can take lot of time
(because calculating the memory dependencies has quadratic complexity).
I chose a limit which resulted in no changes when running the benchmarks.

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