[llvm-commits] [llvm] r152454 - /llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Benjamin Kramer
benny.kra at googlemail.com
Fri Mar 9 16:23:58 PST 2012
Author: d0k
Date: Fri Mar 9 18:23:58 2012
New Revision: 152454
URL: http://llvm.org/viewvc/llvm-project?rev=152454&view=rev
Log:
Give dagcombiner's worklist some inline capacity.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=152454&r1=152453&r2=152454&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Fri Mar 9 18:23:58 2012
@@ -80,7 +80,7 @@
// visit, we pop off the order stack until we find an item that is
// also in the contents set. All operations are O(log N).
SmallPtrSet<SDNode*, 64> WorkListContents;
- std::vector<SDNode*> WorkListOrder;
+ SmallVector<SDNode*, 64> WorkListOrder;
// AA - Used for DAG load/store alias analysis.
AliasAnalysis &AA;
@@ -1005,8 +1005,7 @@
// worklist *should* contain, and check the node we want to visit is should
// actually be visited.
do {
- N = WorkListOrder.back();
- WorkListOrder.pop_back();
+ N = WorkListOrder.pop_back_val();
} while (!WorkListContents.erase(N));
// If N has no uses, it is dead. Make sure to revisit all N's operands once
More information about the llvm-commits
mailing list