[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Chris Lattner
sabre at nondot.org
Sat Feb 3 16:14:47 PST 2007
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAG.cpp updated: 1.380 -> 1.381
---
Log message:
Switch SelectionDAG::ReplaceAllUsesOfValueWith to use a SmallSetVector for
the users set (most nodes have 1 or 2 users). This speeds up the isel pass
3.2% on kimwitu.
---
Diffs of the changes: (+3 -2)
SelectionDAG.cpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.380 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.381
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.380 Wed Jan 31 22:55:59 2007
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Sat Feb 3 18:14:31 2007
@@ -2409,8 +2409,9 @@
return;
}
- // Get all of the users in a nice, deterministically ordered, uniqued set.
- SetVector<SDNode*> Users(From.Val->use_begin(), From.Val->use_end());
+ // Get all of the users of From.Val. We want these in a nice,
+ // deterministically ordered and uniqued set, so we use a SmallSetVector.
+ SmallSetVector<SDNode*, 16> Users(From.Val->use_begin(), From.Val->use_end());
while (!Users.empty()) {
// We know that this user uses some value of From. If it is the right
More information about the llvm-commits
mailing list