diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-06-15 23:59:25 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-06-15 23:59:25 +0000 |
commit | 8b098b0d57784080eb3518bad5d4fdfba411ab7a (patch) | |
tree | 55cc5d9ba55a6bb0f6fd2098de7d815a7e74f99d /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | 101236969f1858991bbe9070f3510c236bd95727 (diff) | |
download | bcm5719-llvm-8b098b0d57784080eb3518bad5d4fdfba411ab7a.tar.gz bcm5719-llvm-8b098b0d57784080eb3518bad5d4fdfba411ab7a.zip |
Add a limit to the number of instructions memdep will scan in a single block. This prevents (at least in some cases) O(N^2) runtime in passes like DSE.
The limit in this patch is probably too high, but it is enough to stop DSE from going completely insane on a testcase I have (which has a single block with around 50,000 non-aliasing stores in it).
rdar://9471075
llvm-svn: 133111
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions