diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-07 22:42:16 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-07 22:42:16 +0000 |
commit | 1973b3e2541f95c87e4acb7e134362ff306ec9ed (patch) | |
tree | 9b4ab014985a01f9cf6df6542caa96697f765819 /lib/CodeGen/LiveRangeEdit.h | |
parent | be2119e8e2bc7006cfd638a24367acbfda625d16 (diff) |
Make the UselessRegs argument optional in the LiveRangeEdit constructor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127181 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveRangeEdit.h')
-rw-r--r-- | lib/CodeGen/LiveRangeEdit.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/LiveRangeEdit.h b/lib/CodeGen/LiveRangeEdit.h index d5795cde57..9518130560 100644 --- a/lib/CodeGen/LiveRangeEdit.h +++ b/lib/CodeGen/LiveRangeEdit.h @@ -31,7 +31,7 @@ class VirtRegMap; class LiveRangeEdit { LiveInterval &parent_; SmallVectorImpl<LiveInterval*> &newRegs_; - const SmallVectorImpl<LiveInterval*> &uselessRegs_; + const SmallVectorImpl<LiveInterval*> *uselessRegs_; /// firstNew_ - Index of the first register added to newRegs_. const unsigned firstNew_; @@ -66,7 +66,7 @@ public: /// rematerializing values because they are about to be removed. LiveRangeEdit(LiveInterval &parent, SmallVectorImpl<LiveInterval*> &newRegs, - const SmallVectorImpl<LiveInterval*> &uselessRegs) + const SmallVectorImpl<LiveInterval*> *uselessRegs = 0) : parent_(parent), newRegs_(newRegs), uselessRegs_(uselessRegs), firstNew_(newRegs.size()), scannedRemattable_(false) {} @@ -87,7 +87,7 @@ public: /// anyRematerializable - Return true if any parent values may be /// rematerializable. - /// This function must be called before ny rematerialization is attempted. + /// This function must be called before any rematerialization is attempted. bool anyRematerializable(LiveIntervals&, const TargetInstrInfo&, AliasAnalysis*); |