Commit c599e465 by Jim Stichnoth

Subzero: Use the CfgLocalAllocator for more vector types.

BUG= none R=jvoung@chromium.org Review URL: https://codereview.chromium.org/812023003
parent 29841e84
...@@ -106,7 +106,8 @@ typedef int32_t InstNumberT; ...@@ -106,7 +106,8 @@ typedef int32_t InstNumberT;
// Inst::Number value, giving the instruction number that begins or // Inst::Number value, giving the instruction number that begins or
// ends a variable's live range. // ends a variable's live range.
typedef std::pair<SizeT, InstNumberT> LiveBeginEndMapEntry; typedef std::pair<SizeT, InstNumberT> LiveBeginEndMapEntry;
typedef std::vector<LiveBeginEndMapEntry> LiveBeginEndMap; typedef std::vector<LiveBeginEndMapEntry,
CfgLocalAllocator<LiveBeginEndMapEntry> > LiveBeginEndMap;
typedef llvm::BitVector LivenessBV; typedef llvm::BitVector LivenessBV;
typedef uint32_t TimerStackIdT; typedef uint32_t TimerStackIdT;
......
...@@ -528,7 +528,7 @@ enum MetadataKind { ...@@ -528,7 +528,7 @@ enum MetadataKind {
VMK_SingleDefs, // Track uses+defs, but only record single def VMK_SingleDefs, // Track uses+defs, but only record single def
VMK_All // Track uses+defs, including full def list VMK_All // Track uses+defs, including full def list
}; };
typedef std::vector<const Inst *> InstDefList; typedef std::vector<const Inst *, CfgLocalAllocator<const Inst *> > InstDefList;
// VariableTracking tracks the metadata for a single variable. It is // VariableTracking tracks the metadata for a single variable. It is
// only meant to be used internally by VariablesMetadata. // only meant to be used internally by VariablesMetadata.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment