[llvm] add04b9 - ARMLowOverheadLoops: return earlier to avoid printing irrelevant dbg msg. NFC
Sjoerd Meijer via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 13 02:24:25 PST 2020
Author: Sjoerd Meijer
Date: 2020-01-13T10:24:10Z
New Revision: add04b9653848de583c542e0596737f7d7c21553
URL: https://github.com/llvm/llvm-project/commit/add04b9653848de583c542e0596737f7d7c21553
DIFF: https://github.com/llvm/llvm-project/commit/add04b9653848de583c542e0596737f7d7c21553.diff
LOG: ARMLowOverheadLoops: return earlier to avoid printing irrelevant dbg msg. NFC
Added:
Modified:
llvm/lib/Target/ARM/ARMLowOverheadLoops.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/ARM/ARMLowOverheadLoops.cpp b/llvm/lib/Target/ARM/ARMLowOverheadLoops.cpp
index 91aba859e1b1..34757df3a79c 100644
--- a/llvm/lib/Target/ARM/ARMLowOverheadLoops.cpp
+++ b/llvm/lib/Target/ARM/ARMLowOverheadLoops.cpp
@@ -864,6 +864,7 @@ void ARMLowOverheadLoops::RemoveLoopUpdate(LowOverheadLoop &LoLoop) {
LLVM_DEBUG(dbgs() << "ARM Loops: Removing loop update instruction: ";
Def->dump());
Def->eraseFromParent();
+ return;
}
LLVM_DEBUG(dbgs() << "ARM Loops: Can't remove loop update, it's used by:\n";
More information about the llvm-commits
mailing list