[MDA] change BlockScanLimit into a command line option.
authorJingyue Wu <jingyue@google.com>
Tue, 21 Jul 2015 21:50:39 +0000 (21:50 +0000)
committerJingyue Wu <jingyue@google.com>
Tue, 21 Jul 2015 21:50:39 +0000 (21:50 +0000)
commit0a6b8b7be0d6303b6574c2b2c098428c8b945736
tree291ef8dbc6c0921b6d2ec0d6f29d38558f7b85ab
parenta14dff356be24bec8a29522117c8363798838c86
[MDA] change BlockScanLimit into a command line option.

Summary:
In the benchmark (https://github.com/vetter/shoc) we are researching,
the duplicated load is not eliminated because MemoryDependenceAnalysis
hit the BlockScanLimit. This patch change it into a command line option
instead of a hardcoded value.

Patched by Xuetian Weng.

Test Plan: test/Analysis/MemoryDependenceAnalysis/memdep-block-scan-limit.ll

Reviewers: jingyue, reames

Subscribers: reames, llvm-commits

Differential Revision: http://reviews.llvm.org/D11366

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242842 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/MemoryDependenceAnalysis.cpp
test/Analysis/MemoryDependenceAnalysis/memdep-block-scan-limit.ll [new file with mode: 0644]