diff options
author | Andrew Trick <atrick@apple.com> | 2013-08-23 17:48:33 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2013-08-23 17:48:33 +0000 |
commit | d2763f6ce62eaa497e944331668414e35f3712f3 (patch) | |
tree | 99dad54e1dfa9dddf225602e60e9ee031b74769e /include/llvm/CodeGen/ScheduleDAGInstrs.h | |
parent | f89c7498706185ef7cd974fa3459f2cbdcfba73e (diff) | |
download | external_llvm-d2763f6ce62eaa497e944331668414e35f3712f3.zip external_llvm-d2763f6ce62eaa497e944331668414e35f3712f3.tar.gz external_llvm-d2763f6ce62eaa497e944331668414e35f3712f3.tar.bz2 |
mi-sched: Don't call MBB.size() in initSUnits. The driver already has instr count.
This fixes a pathological compile time problem with very large blocks
and lots of scheduling boundaries.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189116 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/ScheduleDAGInstrs.h')
-rw-r--r-- | include/llvm/CodeGen/ScheduleDAGInstrs.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/include/llvm/CodeGen/ScheduleDAGInstrs.h b/include/llvm/CodeGen/ScheduleDAGInstrs.h index 9ab1013..358793d 100644 --- a/include/llvm/CodeGen/ScheduleDAGInstrs.h +++ b/include/llvm/CodeGen/ScheduleDAGInstrs.h @@ -104,12 +104,8 @@ namespace llvm { /// The end of the range to be scheduled. MachineBasicBlock::iterator RegionEnd; - /// The index in BB of RegionEnd. - /// - /// This is the instruction number from the top of the current block, not - /// the SlotIndex. It is only used by the AntiDepBreaker and should be - /// removed once that client is obsolete. - unsigned EndIndex; + /// Instructions in this region (distance(RegionBegin, RegionEnd)). + unsigned NumRegionInstrs; /// After calling BuildSchedGraph, each machine instruction in the current /// scheduling region is mapped to an SUnit. @@ -185,7 +181,7 @@ namespace llvm { virtual void enterRegion(MachineBasicBlock *bb, MachineBasicBlock::iterator begin, MachineBasicBlock::iterator end, - unsigned endcount); + unsigned regioninstrs); /// Notify that the scheduler has finished scheduling the current region. virtual void exitRegion(); |