forked from OSchip/llvm-project
[GISel]: While constructing the GISelWorklist make sure we reserve at least the required size to the underlying dense map.
https://reviews.llvm.org/D57931 This should save some unnecessary growing of the DenseMap. llvm-svn: 353498
This commit is contained in:
parent
a8b4339c2f
commit
c771675688
|
@ -33,7 +33,7 @@ class GISelWorkList {
|
|||
DenseMap<MachineInstr *, unsigned> WorklistMap;
|
||||
|
||||
public:
|
||||
GISelWorkList() {}
|
||||
GISelWorkList() : WorklistMap(N) {}
|
||||
|
||||
bool empty() const { return WorklistMap.empty(); }
|
||||
|
||||
|
|
Loading…
Reference in New Issue