SLPVectorizer: Improve the compile time of isConsecutive by adding a simple constant...
authorNadav Rotem <nrotem@apple.com>
Tue, 16 Jul 2013 22:51:07 +0000 (22:51 +0000)
committerNadav Rotem <nrotem@apple.com>
Tue, 16 Jul 2013 22:51:07 +0000 (22:51 +0000)
commit7c8a26030faad65d49ecd06a4e51344368b79d8d
tree842ea378128a3f72e11f954c9aa57a5b73fa78b7
parent82d4215f64dc941f21bbae7ec781367d343387b8
SLPVectorizer: Improve the compile time of isConsecutive by adding a simple constant-gep check before using SCEV.
This check does not always work because not all of the GEPs use a constant offset, but it happens often enough to reduce the number of times we use SCEV.

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