From bd3306aecb3a15e8967143b8cdbbccf2b1b19b74 Mon Sep 17 00:00:00 2001 From: patrick Date: Sat, 14 Jan 2017 19:55:43 +0000 Subject: Import LLVM 3.9.1 including clang and lld. --- gnu/llvm/lib/CodeGen/MachineLoopInfo.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'gnu/llvm/lib/CodeGen/MachineLoopInfo.cpp') diff --git a/gnu/llvm/lib/CodeGen/MachineLoopInfo.cpp b/gnu/llvm/lib/CodeGen/MachineLoopInfo.cpp index 2f5c9e05cc7..376f78fda1c 100644 --- a/gnu/llvm/lib/CodeGen/MachineLoopInfo.cpp +++ b/gnu/llvm/lib/CodeGen/MachineLoopInfo.cpp @@ -50,11 +50,12 @@ void MachineLoopInfo::getAnalysisUsage(AnalysisUsage &AU) const { MachineBasicBlock *MachineLoop::getTopBlock() { MachineBasicBlock *TopMBB = getHeader(); MachineFunction::iterator Begin = TopMBB->getParent()->begin(); - if (TopMBB != Begin) { + if (TopMBB->getIterator() != Begin) { MachineBasicBlock *PriorMBB = &*std::prev(TopMBB->getIterator()); while (contains(PriorMBB)) { TopMBB = PriorMBB; - if (TopMBB == Begin) break; + if (TopMBB->getIterator() == Begin) + break; PriorMBB = &*std::prev(TopMBB->getIterator()); } } @@ -64,7 +65,7 @@ MachineBasicBlock *MachineLoop::getTopBlock() { MachineBasicBlock *MachineLoop::getBottomBlock() { MachineBasicBlock *BotMBB = getHeader(); MachineFunction::iterator End = BotMBB->getParent()->end(); - if (BotMBB != std::prev(End)) { + if (BotMBB->getIterator() != std::prev(End)) { MachineBasicBlock *NextMBB = &*std::next(BotMBB->getIterator()); while (contains(NextMBB)) { BotMBB = NextMBB; @@ -77,7 +78,7 @@ MachineBasicBlock *MachineLoop::getBottomBlock() { } #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) -void MachineLoop::dump() const { +LLVM_DUMP_METHOD void MachineLoop::dump() const { print(dbgs()); } #endif -- cgit v1.2.3-59-g8ed1b