diff options
| author | Cameron Zwarich <zwarich@apple.com> | 2011-01-17 01:08:59 +0000 |
|---|---|---|
| committer | Cameron Zwarich <zwarich@apple.com> | 2011-01-17 01:08:59 +0000 |
| commit | 814cd9233e8543904f6835e8f7badf894f2370ed (patch) | |
| tree | 7618a232f9ca48fb5c4193e4855dcba27b0c584f /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | 7d92ee38523f21d41593e953034a9069dfdda70d (diff) | |
| download | llvm-814cd9233e8543904f6835e8f7badf894f2370ed.zip llvm-814cd9233e8543904f6835e8f7badf894f2370ed.tar.gz llvm-814cd9233e8543904f6835e8f7badf894f2370ed.tar.bz2 | |
Eliminate the use of dominance frontiers in PromoteMemToReg. In addition to
eliminating a potentially quadratic data structure, this also gives a 17%
speedup when running -scalarrepl on test-suite + SPEC2000 + SPEC2006. My initial
experiment gave a greater speedup around 25%, but I moved the dominator tree
level computation from dominator tree construction to PromoteMemToReg.
Since this approach to computing IDFs has a much lower overhead than the old
code using precomputed DFs, it is worth looking at using this new code for the
second scalarrepl pass as well.
llvm-svn: 123609
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
