aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms/Utils/PromoteMemToReg.h
diff options
context:
space:
mode:
authorCameron Zwarich <zwarich@apple.com>2011-01-17 17:38:41 +0000
committerCameron Zwarich <zwarich@apple.com>2011-01-17 17:38:41 +0000
commit419e8a62997987e0509efe721c1ea81ac29f09f3 (patch)
treecaefd2fe04ddd2185adfdece3eddb39cff9ce4bd /include/llvm/Transforms/Utils/PromoteMemToReg.h
parent5860c6c09e58c3f6d19cee4458320c42a5d17298 (diff)
downloadexternal_llvm-419e8a62997987e0509efe721c1ea81ac29f09f3.zip
external_llvm-419e8a62997987e0509efe721c1ea81ac29f09f3.tar.gz
external_llvm-419e8a62997987e0509efe721c1ea81ac29f09f3.tar.bz2
Roll r123609 back in with two changes that fix test failures with expensive
checks enabled: 1) Use '<' to compare integers in a comparison function rather than '<='. 2) Use the uniqued set DefBlocks rather than Info.DefiningBlocks to initialize the priority queue. The speedup of scalarrepl on test-suite + SPEC2000 + SPEC2006 is a bit less, at just under 16% rather than 17%. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123662 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/Utils/PromoteMemToReg.h')
-rw-r--r--include/llvm/Transforms/Utils/PromoteMemToReg.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/Transforms/Utils/PromoteMemToReg.h b/include/llvm/Transforms/Utils/PromoteMemToReg.h
index 35cfadd..98d51a2 100644
--- a/include/llvm/Transforms/Utils/PromoteMemToReg.h
+++ b/include/llvm/Transforms/Utils/PromoteMemToReg.h
@@ -38,8 +38,7 @@ bool isAllocaPromotable(const AllocaInst *AI);
/// made to the IR.
///
void PromoteMemToReg(const std::vector<AllocaInst*> &Allocas,
- DominatorTree &DT, DominanceFrontier &DF,
- AliasSetTracker *AST = 0);
+ DominatorTree &DT, AliasSetTracker *AST = 0);
} // End llvm namespace