summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2014-12-12 13:34:03 +0000
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2014-12-12 13:34:03 +0000
commit5634a54efcb749aeaa585096cc7eb801e9a0be40 (patch)
treefd99b21ded419715b7de69a582df07f53a8fb80a /llvm/lib/CodeGen
parentff2437fe849d3afb7851e63637b129bd94d8c2b2 (diff)
downloadbcm5719-llvm-5634a54efcb749aeaa585096cc7eb801e9a0be40.tar.gz
bcm5719-llvm-5634a54efcb749aeaa585096cc7eb801e9a0be40.zip
Revert: [MachineScheduler] Fix for PR21807: minor code difference building with/without -g.
Test 'misched-code-difference-with-debug.ll' was failing on some buildbots. llvm-svn: 224121
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/MachineScheduler.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp
index cc8f3a075e9..261942f534b 100644
--- a/llvm/lib/CodeGen/MachineScheduler.cpp
+++ b/llvm/lib/CodeGen/MachineScheduler.cpp
@@ -430,11 +430,9 @@ void MachineSchedulerBase::scheduleRegions(ScheduleDAGInstrs &Scheduler) {
// instruction stream until we find the nearest boundary.
unsigned NumRegionInstrs = 0;
MachineBasicBlock::iterator I = RegionEnd;
- for(;I != MBB->begin(); --I, --RemainingInstrs) {
+ for(;I != MBB->begin(); --I, --RemainingInstrs, ++NumRegionInstrs) {
if (isSchedBoundary(std::prev(I), MBB, MF, TII, IsPostRA))
break;
- if (!I->isDebugValue())
- ++NumRegionInstrs;
}
// Notify the scheduler of the region, even if we may skip scheduling
// it. Perhaps it still needs to be bundled.
OpenPOWER on IntegriCloud