blob: 0930b3974cdbd87ee195dac5e5e244602a92949b [file] [log] [blame]
Andrew Trick14e8d712010-10-22 23:09:15 +00001//===-------- SplitKit.cpp - Toolkit for splitting live ranges --*- C++ -*-===//
Jakob Stoklund Olesen8ae02632010-07-20 15:41:07 +00002//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file contains the SplitAnalysis class as well as mutator functions for
11// live range splitting.
12//
13//===----------------------------------------------------------------------===//
14
15#include "llvm/ADT/SmallPtrSet.h"
16#include "llvm/ADT/DenseMap.h"
Jakob Stoklund Olesenf0179002010-07-26 23:44:11 +000017#include "llvm/CodeGen/SlotIndexes.h"
Jakob Stoklund Olesen8ae02632010-07-20 15:41:07 +000018
19namespace llvm {
20
21class LiveInterval;
22class LiveIntervals;
Jakob Stoklund Olesena17768f2010-10-14 23:49:52 +000023class LiveRangeEdit;
Jakob Stoklund Olesen8ae02632010-07-20 15:41:07 +000024class MachineInstr;
Jakob Stoklund Olesen8ae02632010-07-20 15:41:07 +000025class MachineLoop;
26class MachineLoopInfo;
Jakob Stoklund Olesenf0179002010-07-26 23:44:11 +000027class MachineRegisterInfo;
Jakob Stoklund Olesen6a0dc072010-07-20 21:46:58 +000028class TargetInstrInfo;
Jakob Stoklund Olesencfa71342010-11-10 19:31:50 +000029class TargetRegisterInfo;
Jakob Stoklund Olesenf0179002010-07-26 23:44:11 +000030class VirtRegMap;
31class VNInfo;
Jakob Stoklund Olesen532de3d2010-10-22 20:28:21 +000032class raw_ostream;
Jakob Stoklund Olesen8ae02632010-07-20 15:41:07 +000033
Jakob Stoklund Olesene1dde7b2010-10-28 20:34:52 +000034/// At some point we should just include MachineDominators.h:
35class MachineDominatorTree;
36template <class NodeT> class DomTreeNodeBase;
37typedef DomTreeNodeBase<MachineBasicBlock> MachineDomTreeNode;
38
Jakob Stoklund Olesenf0179002010-07-26 23:44:11 +000039/// SplitAnalysis - Analyze a LiveInterval, looking for live range splitting
40/// opportunities.
Jakob Stoklund Olesen8ae02632010-07-20 15:41:07 +000041class SplitAnalysis {
Jakob Stoklund Olesen08e93b12010-08-10 17:07:22 +000042public:
Jakob Stoklund Olesen8ae02632010-07-20 15:41:07 +000043 const MachineFunction &mf_;
44 const LiveIntervals &lis_;
45 const MachineLoopInfo &loops_;
Jakob Stoklund Olesen6a0dc072010-07-20 21:46:58 +000046 const TargetInstrInfo &tii_;
Jakob Stoklund Olesen8ae02632010-07-20 15:41:07 +000047
Jakob Stoklund Olesen8ae02632010-07-20 15:41:07 +000048 // Instructions using the the current register.
49 typedef SmallPtrSet<const MachineInstr*, 16> InstrPtrSet;
50 InstrPtrSet usingInstrs_;
51
52 // The number of instructions using curli in each basic block.
53 typedef DenseMap<const MachineBasicBlock*, unsigned> BlockCountMap;
54 BlockCountMap usingBlocks_;
55
Jakob Stoklund Olesen2dee7a52010-08-12 23:02:55 +000056 // The number of basic block using curli in each loop.
57 typedef DenseMap<const MachineLoop*, unsigned> LoopCountMap;
58 LoopCountMap usingLoops_;
Jakob Stoklund Olesen8ae02632010-07-20 15:41:07 +000059
Jakob Stoklund Olesenf1b05f22010-08-12 17:07:14 +000060private:
61 // Current live interval.
62 const LiveInterval *curli_;
63
Jakob Stoklund Olesen8ae02632010-07-20 15:41:07 +000064 // Sumarize statistics by counting instructions using curli_.
Jakob Stoklund Olesenabff2802010-07-20 16:12:37 +000065 void analyzeUses();
Jakob Stoklund Olesen8ae02632010-07-20 15:41:07 +000066
Jakob Stoklund Olesen6a0dc072010-07-20 21:46:58 +000067 /// canAnalyzeBranch - Return true if MBB ends in a branch that can be
68 /// analyzed.
69 bool canAnalyzeBranch(const MachineBasicBlock *MBB);
70
Jakob Stoklund Olesen8ae02632010-07-20 15:41:07 +000071public:
Jakob Stoklund Olesenf2c6e362010-07-20 23:50:15 +000072 SplitAnalysis(const MachineFunction &mf, const LiveIntervals &lis,
73 const MachineLoopInfo &mli);
Jakob Stoklund Olesen8ae02632010-07-20 15:41:07 +000074
75 /// analyze - set curli to the specified interval, and analyze how it may be
76 /// split.
77 void analyze(const LiveInterval *li);
78
79 /// clear - clear all data structures so SplitAnalysis is ready to analyze a
80 /// new interval.
81 void clear();
82
Jakob Stoklund Olesen6a0dc072010-07-20 21:46:58 +000083 typedef SmallPtrSet<const MachineBasicBlock*, 16> BlockPtrSet;
Jakob Stoklund Olesen2dee7a52010-08-12 23:02:55 +000084 typedef SmallPtrSet<const MachineLoop*, 16> LoopPtrSet;
Jakob Stoklund Olesen6a0dc072010-07-20 21:46:58 +000085
Jakob Stoklund Olesen532de3d2010-10-22 20:28:21 +000086 // Print a set of blocks with use counts.
87 void print(const BlockPtrSet&, raw_ostream&) const;
88
Jakob Stoklund Olesen6a0dc072010-07-20 21:46:58 +000089 // Sets of basic blocks surrounding a machine loop.
90 struct LoopBlocks {
91 BlockPtrSet Loop; // Blocks in the loop.
92 BlockPtrSet Preds; // Loop predecessor blocks.
93 BlockPtrSet Exits; // Loop exit blocks.
94
95 void clear() {
96 Loop.clear();
97 Preds.clear();
98 Exits.clear();
99 }
100 };
101
Jakob Stoklund Olesen532de3d2010-10-22 20:28:21 +0000102 // Print loop blocks with use counts.
103 void print(const LoopBlocks&, raw_ostream&) const;
104
Jakob Stoklund Olesen6a0dc072010-07-20 21:46:58 +0000105 // Calculate the block sets surrounding the loop.
106 void getLoopBlocks(const MachineLoop *Loop, LoopBlocks &Blocks);
107
Jakob Stoklund Olesen8ae02632010-07-20 15:41:07 +0000108 /// LoopPeripheralUse - how is a variable used in and around a loop?
109 /// Peripheral blocks are the loop predecessors and exit blocks.
110 enum LoopPeripheralUse {
111 ContainedInLoop, // All uses are inside the loop.
112 SinglePeripheral, // At most one instruction per peripheral block.
113 MultiPeripheral, // Multiple instructions in some peripheral blocks.
114 OutsideLoop // Uses outside loop periphery.
115 };
116
117 /// analyzeLoopPeripheralUse - Return an enum describing how curli_ is used in
118 /// and around the Loop.
Jakob Stoklund Olesen6a0dc072010-07-20 21:46:58 +0000119 LoopPeripheralUse analyzeLoopPeripheralUse(const LoopBlocks&);
120
121 /// getCriticalExits - It may be necessary to partially break critical edges
122 /// leaving the loop if an exit block has phi uses of curli. Collect the exit
123 /// blocks that need special treatment into CriticalExits.
124 void getCriticalExits(const LoopBlocks &Blocks, BlockPtrSet &CriticalExits);
125
126 /// canSplitCriticalExits - Return true if it is possible to insert new exit
127 /// blocks before the blocks in CriticalExits.
128 bool canSplitCriticalExits(const LoopBlocks &Blocks,
129 BlockPtrSet &CriticalExits);
Jakob Stoklund Olesen8ae02632010-07-20 15:41:07 +0000130
Jakob Stoklund Olesen0960a652010-10-27 00:39:05 +0000131 /// getCriticalPreds - Get the set of loop predecessors with critical edges to
132 /// blocks outside the loop that have curli live in. We don't have to break
133 /// these edges, but they do require special treatment.
134 void getCriticalPreds(const LoopBlocks &Blocks, BlockPtrSet &CriticalPreds);
135
Jakob Stoklund Olesen521a4532010-12-15 17:41:19 +0000136 /// getSplitLoops - Get the set of loops that have curli uses and would be
137 /// profitable to split.
138 void getSplitLoops(LoopPtrSet&);
139
Jakob Stoklund Olesen8ae02632010-07-20 15:41:07 +0000140 /// getBestSplitLoop - Return the loop where curli may best be split to a
141 /// separate register, or NULL.
142 const MachineLoop *getBestSplitLoop();
Jakob Stoklund Olesenf1b05f22010-08-12 17:07:14 +0000143
Jakob Stoklund Olesen697483a2010-12-15 17:49:52 +0000144 /// isBypassLoop - Return true if curli is live through Loop and has no uses
145 /// inside the loop. Bypass loops are candidates for splitting because it can
146 /// prevent interference inside the loop.
147 bool isBypassLoop(const MachineLoop *Loop);
148
149 /// getBypassLoops - Get all the maximal bypass loops. These are the bypass
150 /// loops whose parent is not a bypass loop.
151 void getBypassLoops(LoopPtrSet&);
152
Jakob Stoklund Olesenf1b05f22010-08-12 17:07:14 +0000153 /// getMultiUseBlocks - Add basic blocks to Blocks that may benefit from
154 /// having curli split to a new live interval. Return true if Blocks can be
155 /// passed to SplitEditor::splitSingleBlocks.
156 bool getMultiUseBlocks(BlockPtrSet &Blocks);
Jakob Stoklund Olesenfc412d82010-08-13 21:18:48 +0000157
158 /// getBlockForInsideSplit - If curli is contained inside a single basic block,
159 /// and it wou pay to subdivide the interval inside that block, return it.
160 /// Otherwise return NULL. The returned block can be passed to
161 /// SplitEditor::splitInsideBlock.
162 const MachineBasicBlock *getBlockForInsideSplit();
Jakob Stoklund Olesen8ae02632010-07-20 15:41:07 +0000163};
164
Jakob Stoklund Olesen1407c842010-08-18 19:00:08 +0000165
166/// LiveIntervalMap - Map values from a large LiveInterval into a small
167/// interval that is a subset. Insert phi-def values as needed. This class is
168/// used by SplitEditor to create new smaller LiveIntervals.
169///
170/// parentli_ is the larger interval, li_ is the subset interval. Every value
171/// in li_ corresponds to exactly one value in parentli_, and the live range
172/// of the value is contained within the live range of the parentli_ value.
173/// Values in parentli_ may map to any number of openli_ values, including 0.
174class LiveIntervalMap {
175 LiveIntervals &lis_;
Jakob Stoklund Olesend68f4582010-10-28 20:34:50 +0000176 MachineDominatorTree &mdt_;
Jakob Stoklund Olesen1407c842010-08-18 19:00:08 +0000177
178 // The parent interval is never changed.
179 const LiveInterval &parentli_;
180
181 // The child interval's values are fully contained inside parentli_ values.
Jakob Stoklund Olesen9ca2aeb2010-09-13 23:29:09 +0000182 LiveInterval *li_;
Jakob Stoklund Olesen1407c842010-08-18 19:00:08 +0000183
184 typedef DenseMap<const VNInfo*, VNInfo*> ValueMap;
185
186 // Map parentli_ values to simple values in li_ that are defined at the same
187 // SlotIndex, or NULL for parentli_ values that have complex li_ defs.
188 // Note there is a difference between values mapping to NULL (complex), and
189 // values not present (unknown/unmapped).
190 ValueMap valueMap_;
191
Jakob Stoklund Olesene1dde7b2010-10-28 20:34:52 +0000192 typedef std::pair<VNInfo*, MachineDomTreeNode*> LiveOutPair;
193 typedef DenseMap<MachineBasicBlock*,LiveOutPair> LiveOutMap;
194
195 // liveOutCache_ - Map each basic block where li_ is live out to the live-out
196 // value and its defining block. One of these conditions shall be true:
197 //
198 // 1. !liveOutCache_.count(MBB)
199 // 2. liveOutCache_[MBB].second.getNode() == MBB
200 // 3. forall P in preds(MBB): liveOutCache_[P] == liveOutCache_[MBB]
201 //
202 // This is only a cache, the values can be computed as:
203 //
204 // VNI = li_->getVNInfoAt(lis_.getMBBEndIdx(MBB))
205 // Node = mbt_[lis_.getMBBFromIndex(VNI->def)]
206 //
207 // The cache is also used as a visiteed set by mapValue().
208 LiveOutMap liveOutCache_;
209
Jakob Stoklund Olesen1407c842010-08-18 19:00:08 +0000210public:
211 LiveIntervalMap(LiveIntervals &lis,
Jakob Stoklund Olesend68f4582010-10-28 20:34:50 +0000212 MachineDominatorTree &mdt,
Jakob Stoklund Olesen9ca2aeb2010-09-13 23:29:09 +0000213 const LiveInterval &parentli)
Jakob Stoklund Olesend68f4582010-10-28 20:34:50 +0000214 : lis_(lis), mdt_(mdt), parentli_(parentli), li_(0) {}
Jakob Stoklund Olesen9ca2aeb2010-09-13 23:29:09 +0000215
216 /// reset - clear all data structures and start a new live interval.
217 void reset(LiveInterval *);
218
219 /// getLI - return the current live interval.
220 LiveInterval *getLI() const { return li_; }
Jakob Stoklund Olesen1407c842010-08-18 19:00:08 +0000221
222 /// defValue - define a value in li_ from the parentli_ value VNI and Idx.
223 /// Idx does not have to be ParentVNI->def, but it must be contained within
224 /// ParentVNI's live range in parentli_.
225 /// Return the new li_ value.
226 VNInfo *defValue(const VNInfo *ParentVNI, SlotIndex Idx);
227
228 /// mapValue - map ParentVNI to the corresponding li_ value at Idx. It is
229 /// assumed that ParentVNI is live at Idx.
230 /// If ParentVNI has not been defined by defValue, it is assumed that
231 /// ParentVNI->def dominates Idx.
232 /// If ParentVNI has been defined by defValue one or more times, a value that
233 /// dominates Idx will be returned. This may require creating extra phi-def
234 /// values and adding live ranges to li_.
Jakob Stoklund Olesen5fa42a42010-09-21 22:32:21 +0000235 /// If simple is not NULL, *simple will indicate if ParentVNI is a simply
236 /// mapped value.
237 VNInfo *mapValue(const VNInfo *ParentVNI, SlotIndex Idx, bool *simple = 0);
238
Jakob Stoklund Olesenfc60d772010-10-05 20:36:25 +0000239 // extendTo - Find the last li_ value defined in MBB at or before Idx. The
240 // parentli is assumed to be live at Idx. Extend the live range to include
241 // Idx. Return the found VNInfo, or NULL.
Jakob Stoklund Olesenc95c1462010-10-27 00:39:07 +0000242 VNInfo *extendTo(const MachineBasicBlock *MBB, SlotIndex Idx);
Jakob Stoklund Olesenfc60d772010-10-05 20:36:25 +0000243
Jakob Stoklund Olesen5fa42a42010-09-21 22:32:21 +0000244 /// isMapped - Return true is ParentVNI is a known mapped value. It may be a
245 /// simple 1-1 mapping or a complex mapping to later defs.
246 bool isMapped(const VNInfo *ParentVNI) const {
247 return valueMap_.count(ParentVNI);
248 }
249
250 /// isComplexMapped - Return true if ParentVNI has received new definitions
251 /// with defValue.
252 bool isComplexMapped(const VNInfo *ParentVNI) const;
253
254 // addSimpleRange - Add a simple range from parentli_ to li_.
255 // ParentVNI must be live in the [Start;End) interval.
256 void addSimpleRange(SlotIndex Start, SlotIndex End, const VNInfo *ParentVNI);
Jakob Stoklund Olesen1407c842010-08-18 19:00:08 +0000257
258 /// addRange - Add live ranges to li_ where [Start;End) intersects parentli_.
259 /// All needed values whose def is not inside [Start;End) must be defined
260 /// beforehand so mapValue will work.
261 void addRange(SlotIndex Start, SlotIndex End);
262};
263
264
Jakob Stoklund Olesenf0179002010-07-26 23:44:11 +0000265/// SplitEditor - Edit machine code and LiveIntervals for live range
266/// splitting.
267///
Jakob Stoklund Olesen5eb308b2010-08-06 22:17:33 +0000268/// - Create a SplitEditor from a SplitAnalysis.
Jakob Stoklund Olesen7536f722010-08-04 22:08:39 +0000269/// - Start a new live interval with openIntv.
270/// - Mark the places where the new interval is entered using enterIntv*
271/// - Mark the ranges where the new interval is used with useIntv*
272/// - Mark the places where the interval is exited with exitIntv*.
273/// - Finish the current interval with closeIntv and repeat from 2.
Jakob Stoklund Olesen74669272010-10-08 23:42:21 +0000274/// - Rewrite instructions with finish().
Jakob Stoklund Olesenf0179002010-07-26 23:44:11 +0000275///
276class SplitEditor {
277 SplitAnalysis &sa_;
278 LiveIntervals &lis_;
279 VirtRegMap &vrm_;
280 MachineRegisterInfo &mri_;
281 const TargetInstrInfo &tii_;
Jakob Stoklund Olesencfa71342010-11-10 19:31:50 +0000282 const TargetRegisterInfo &tri_;
Jakob Stoklund Olesenf0179002010-07-26 23:44:11 +0000283
Jakob Stoklund Olesena17768f2010-10-14 23:49:52 +0000284 /// edit_ - The current parent register and new intervals created.
285 LiveRangeEdit &edit_;
286
Jakob Stoklund Olesen5eb308b2010-08-06 22:17:33 +0000287 /// dupli_ - Created as a copy of curli_, ranges are carved out as new
288 /// intervals get added through openIntv / closeIntv. This is used to avoid
289 /// editing curli_.
Jakob Stoklund Olesendd9f3fd2010-09-13 23:29:11 +0000290 LiveIntervalMap dupli_;
Jakob Stoklund Olesenf0179002010-07-26 23:44:11 +0000291
292 /// Currently open LiveInterval.
Jakob Stoklund Olesendd9f3fd2010-09-13 23:29:11 +0000293 LiveIntervalMap openli_;
Jakob Stoklund Olesenf0179002010-07-26 23:44:11 +0000294
Jakob Stoklund Olesencfa71342010-11-10 19:31:50 +0000295 /// defFromParent - Define Reg from ParentVNI at UseIdx using either
296 /// rematerialization or a COPY from parent. Return the new value.
297 VNInfo *defFromParent(LiveIntervalMap &Reg,
298 VNInfo *ParentVNI,
299 SlotIndex UseIdx,
300 MachineBasicBlock &MBB,
301 MachineBasicBlock::iterator I);
302
Jakob Stoklund Olesen5fa42a42010-09-21 22:32:21 +0000303 /// intervalsLiveAt - Return true if any member of intervals_ is live at Idx.
304 bool intervalsLiveAt(SlotIndex Idx) const;
305
306 /// Values in curli whose live range has been truncated when entering an open
307 /// li.
308 SmallPtrSet<const VNInfo*, 8> truncatedValues;
309
310 /// addTruncSimpleRange - Add the given simple range to dupli_ after
311 /// truncating any overlap with intervals_.
312 void addTruncSimpleRange(SlotIndex Start, SlotIndex End, VNInfo *VNI);
Jakob Stoklund Olesenf0179002010-07-26 23:44:11 +0000313
Jakob Stoklund Olesenc95c1462010-10-27 00:39:07 +0000314 /// criticalPreds_ - Set of basic blocks where both dupli and openli should be
315 /// live out because of a critical edge.
316 SplitAnalysis::BlockPtrSet criticalPreds_;
317
Jakob Stoklund Olesen74669272010-10-08 23:42:21 +0000318 /// computeRemainder - Compute the dupli liveness as the complement of all the
319 /// new intervals.
320 void computeRemainder();
321
322 /// rewrite - Rewrite all uses of reg to use the new registers.
323 void rewrite(unsigned reg);
324
Jakob Stoklund Olesenf0179002010-07-26 23:44:11 +0000325public:
326 /// Create a new SplitEditor for editing the LiveInterval analyzed by SA.
Jakob Stoklund Olesen7536f722010-08-04 22:08:39 +0000327 /// Newly created intervals will be appended to newIntervals.
Jakob Stoklund Olesend68f4582010-10-28 20:34:50 +0000328 SplitEditor(SplitAnalysis &SA, LiveIntervals&, VirtRegMap&,
329 MachineDominatorTree&, LiveRangeEdit&);
Jakob Stoklund Olesenf0179002010-07-26 23:44:11 +0000330
Jakob Stoklund Olesen5eb308b2010-08-06 22:17:33 +0000331 /// getAnalysis - Get the corresponding analysis.
332 SplitAnalysis &getAnalysis() { return sa_; }
Jakob Stoklund Olesenf0179002010-07-26 23:44:11 +0000333
Jakob Stoklund Olesen7536f722010-08-04 22:08:39 +0000334 /// Create a new virtual register and live interval.
335 void openIntv();
Jakob Stoklund Olesenf0179002010-07-26 23:44:11 +0000336
Jakob Stoklund Olesenf1b05f22010-08-12 17:07:14 +0000337 /// enterIntvBefore - Enter openli before the instruction at Idx. If curli is
338 /// not live before Idx, a COPY is not inserted.
339 void enterIntvBefore(SlotIndex Idx);
340
Jakob Stoklund Olesen7536f722010-08-04 22:08:39 +0000341 /// enterIntvAtEnd - Enter openli at the end of MBB.
Jakob Stoklund Olesenf6a129a2010-09-16 00:01:36 +0000342 void enterIntvAtEnd(MachineBasicBlock &MBB);
Jakob Stoklund Olesenf0179002010-07-26 23:44:11 +0000343
Jakob Stoklund Olesen7536f722010-08-04 22:08:39 +0000344 /// useIntv - indicate that all instructions in MBB should use openli.
345 void useIntv(const MachineBasicBlock &MBB);
Jakob Stoklund Olesenf0179002010-07-26 23:44:11 +0000346
Jakob Stoklund Olesen7536f722010-08-04 22:08:39 +0000347 /// useIntv - indicate that all instructions in range should use openli.
348 void useIntv(SlotIndex Start, SlotIndex End);
Jakob Stoklund Olesenf0179002010-07-26 23:44:11 +0000349
Jakob Stoklund Olesenf1b05f22010-08-12 17:07:14 +0000350 /// leaveIntvAfter - Leave openli after the instruction at Idx.
351 void leaveIntvAfter(SlotIndex Idx);
352
Jakob Stoklund Olesen7536f722010-08-04 22:08:39 +0000353 /// leaveIntvAtTop - Leave the interval at the top of MBB.
354 /// Currently, only one value can leave the interval.
355 void leaveIntvAtTop(MachineBasicBlock &MBB);
Jakob Stoklund Olesenf0179002010-07-26 23:44:11 +0000356
Jakob Stoklund Olesen7536f722010-08-04 22:08:39 +0000357 /// closeIntv - Indicate that we are done editing the currently open
Jakob Stoklund Olesenf0179002010-07-26 23:44:11 +0000358 /// LiveInterval, and ranges can be trimmed.
Jakob Stoklund Olesen7536f722010-08-04 22:08:39 +0000359 void closeIntv();
Jakob Stoklund Olesenf0179002010-07-26 23:44:11 +0000360
Jakob Stoklund Olesen74669272010-10-08 23:42:21 +0000361 /// finish - after all the new live ranges have been created, compute the
362 /// remaining live range, and rewrite instructions to use the new registers.
363 void finish();
Jakob Stoklund Olesenf0179002010-07-26 23:44:11 +0000364
365 // ===--- High level methods ---===
366
367 /// splitAroundLoop - Split curli into a separate live interval inside
Jakob Stoklund Olesen57d0f2d2010-10-05 22:19:33 +0000368 /// the loop.
369 void splitAroundLoop(const MachineLoop*);
Jakob Stoklund Olesenf0179002010-07-26 23:44:11 +0000370
Jakob Stoklund Olesenf1b05f22010-08-12 17:07:14 +0000371 /// splitSingleBlocks - Split curli into a separate live interval inside each
Jakob Stoklund Olesen57d0f2d2010-10-05 22:19:33 +0000372 /// basic block in Blocks.
373 void splitSingleBlocks(const SplitAnalysis::BlockPtrSet &Blocks);
Jakob Stoklund Olesenf0179002010-07-26 23:44:11 +0000374
Jakob Stoklund Olesen57d0f2d2010-10-05 22:19:33 +0000375 /// splitInsideBlock - Split curli into multiple intervals inside MBB.
376 void splitInsideBlock(const MachineBasicBlock *);
Jakob Stoklund Olesenfc412d82010-08-13 21:18:48 +0000377};
Jakob Stoklund Olesen8ae02632010-07-20 15:41:07 +0000378
379}