]> granicus.if.org Git - llvm/commit
SLPVectorizer: add a second limit for the number of alias checks.
authorErik Eckstein <eeckstein@apple.com>
Thu, 22 Jan 2015 08:20:51 +0000 (08:20 +0000)
committerErik Eckstein <eeckstein@apple.com>
Thu, 22 Jan 2015 08:20:51 +0000 (08:20 +0000)
commit5b657c48d84ffc42469adde4f0d4284e1a8da466
tree06207ef6b8dd129a9675a3c2a2e8e8fc34d191e2
parent05e7ae1a7b4a2c88ab6515c2a0bc071c90ea80df
SLPVectorizer: add a second limit for the number of alias checks.

Even with the current limit on the number of alias checks, the containing loop has quadratic complexity.
This begins to hurt for blocks containing > 1K load/store instructions.
This commit introduces a limit for the loop count. It reduces the runtime for such very large blocks.

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