summaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/MachineScheduler.h
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2013-08-23 17:48:33 +0000
committerAndrew Trick <atrick@apple.com>2013-08-23 17:48:33 +0000
commitd2763f6ce62eaa497e944331668414e35f3712f3 (patch)
tree99dad54e1dfa9dddf225602e60e9ee031b74769e /include/llvm/CodeGen/MachineScheduler.h
parentf89c7498706185ef7cd974fa3459f2cbdcfba73e (diff)
downloadexternal_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/MachineScheduler.h')
-rw-r--r--include/llvm/CodeGen/MachineScheduler.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachineScheduler.h b/include/llvm/CodeGen/MachineScheduler.h
index d110ea1..2749a19 100644
--- a/include/llvm/CodeGen/MachineScheduler.h
+++ b/include/llvm/CodeGen/MachineScheduler.h
@@ -293,8 +293,7 @@ public:
void enterRegion(MachineBasicBlock *bb,
MachineBasicBlock::iterator begin,
MachineBasicBlock::iterator end,
- unsigned endcount);
-
+ unsigned regioninstrs) LLVM_OVERRIDE;
/// Implement ScheduleDAGInstrs interface for scheduling a sequence of
/// reorderable instructions.