[llvm-commits] CVS: llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
Chris Lattner
sabre at nondot.org
Mon Feb 5 14:15:37 PST 2007
Changes in directory llvm/lib/Transforms/Utils:
PromoteMemoryToRegister.cpp updated: 1.87 -> 1.88
---
Log message:
switch an std::set over to a SmallPtrSet, speeding up mem2reg 6% on 176.gcc.
---
Diffs of the changes: (+1 -1)
PromoteMemoryToRegister.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
diff -u llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp:1.87 llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp:1.88
--- llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp:1.87 Mon Feb 5 16:13:11 2007
+++ llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp Mon Feb 5 16:15:21 2007
@@ -84,7 +84,7 @@
/// Visited - The set of basic blocks the renamer has already visited.
///
- std::set<BasicBlock*> Visited;
+ SmallPtrSet<BasicBlock*, 16> Visited;
/// BBNumbers - Contains a stable numbering of basic blocks to avoid
/// non-determinstic behavior.
More information about the llvm-commits
mailing list