[llvm] 6ca192d - [LoopDeletion] Add back statistic update lost in 523573e
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 17 12:20:59 PST 2022
Author: Philip Reames
Date: 2022-01-17T12:20:51-08:00
New Revision: 6ca192de588825f70a5cf6bb75d23c51892f723e
URL: https://github.com/llvm/llvm-project/commit/6ca192de588825f70a5cf6bb75d23c51892f723e
DIFF: https://github.com/llvm/llvm-project/commit/6ca192de588825f70a5cf6bb75d23c51892f723e.diff
LOG: [LoopDeletion] Add back statistic update lost in 523573e
Caught by a couple of builders as an unused variable warning (e.g. https://lab.llvm.org/buildbot#builders/57/builds/13973).
Added:
Modified:
llvm/lib/Transforms/Scalar/LoopDeletion.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/LoopDeletion.cpp b/llvm/lib/Transforms/Scalar/LoopDeletion.cpp
index d70ff60a1aac..361d6c0d9381 100644
--- a/llvm/lib/Transforms/Scalar/LoopDeletion.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopDeletion.cpp
@@ -417,6 +417,7 @@ breakBackedgeIfNotTaken(Loop *L, DominatorTree &DT, ScalarEvolution &SE,
return LoopDeletionResult::Unmodified;
}
}
+ ++NumBackedgesBroken;
breakLoopBackedge(L, DT, SE, LI, MSSA);
return LoopDeletionResult::Deleted;
}
More information about the llvm-commits
mailing list