[llvm] 42d9901 - NFC: Add a comment indicating UpdateAnalysisInformation invalidates DFS Numbering (#91252)
via llvm-commits
llvm-commits at lists.llvm.org
Wed May 8 11:03:50 PDT 2024
Author: AdityaK
Date: 2024-05-08T11:03:46-07:00
New Revision: 42d99013bd6b7ed4a085e39c94ab86938d633f8a
URL: https://github.com/llvm/llvm-project/commit/42d99013bd6b7ed4a085e39c94ab86938d633f8a
DIFF: https://github.com/llvm/llvm-project/commit/42d99013bd6b7ed4a085e39c94ab86938d633f8a.diff
LOG: NFC: Add a comment indicating UpdateAnalysisInformation invalidates DFS Numbering (#91252)
Added:
Modified:
llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp b/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
index b9ed077b660d..462283c0bfe0 100644
--- a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
+++ b/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
@@ -1141,6 +1141,7 @@ BasicBlock *llvm::splitBlockBefore(BasicBlock *Old, BasicBlock::iterator SplitPt
}
/// Update DominatorTree, LoopInfo, and LCCSA analysis information.
+/// Invalidates DFS Numbering when DTU or DT is provided.
static void UpdateAnalysisInformation(BasicBlock *OldBB, BasicBlock *NewBB,
ArrayRef<BasicBlock *> Preds,
DomTreeUpdater *DTU, DominatorTree *DT,
More information about the llvm-commits
mailing list