mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-03 00:33:09 +00:00
Change the use_list to be a smallvector instead of a vector. This reduces
isel time from 6.79s to 5.53s (22%) on kc++ with a release build on ppc. Go smallvector! :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29731 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f83482dcad
commit
5892d47a62
@ -20,6 +20,7 @@
|
||||
#include "llvm/ADT/ilist"
|
||||
|
||||
#include <list>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include <string>
|
||||
|
@ -23,9 +23,9 @@
|
||||
#include "llvm/Value.h"
|
||||
#include "llvm/ADT/GraphTraits.h"
|
||||
#include "llvm/ADT/iterator"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include <cassert>
|
||||
#include <vector>
|
||||
|
||||
namespace llvm {
|
||||
|
||||
@ -722,7 +722,7 @@ class SDNode {
|
||||
|
||||
/// Uses - These are all of the SDNode's that use a value produced by this
|
||||
/// node.
|
||||
std::vector<SDNode*> Uses;
|
||||
SmallVector<SDNode*,3> Uses;
|
||||
|
||||
// Out-of-line virtual method to give class a home.
|
||||
virtual void ANCHOR();
|
||||
@ -751,7 +751,7 @@ public:
|
||||
///
|
||||
int getNodeId() const { return NodeId; }
|
||||
|
||||
typedef std::vector<SDNode*>::const_iterator use_iterator;
|
||||
typedef SmallVector<SDNode*,3>::const_iterator use_iterator;
|
||||
use_iterator use_begin() const { return Uses.begin(); }
|
||||
use_iterator use_end() const { return Uses.end(); }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user