[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)
commitd058ea927f613ef4c787526c040dd6a957fc76d2
tree7fae3738b604d6641fd433dab8b0aa5000af3222
parent525c73ceb70fc5c86cbfc246022402fa3d8a8f17
[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

llvm-svn: 242842
llvm/lib/Analysis/MemoryDependenceAnalysis.cpp
llvm/test/Analysis/MemoryDependenceAnalysis/memdep-block-scan-limit.ll [new file with mode: 0644]