Skip to content

Commit 7ea4874

Browse files
committed
better comment
1 parent e9de2d8 commit 7ea4874

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

llvm/test/CodeGen/ARM/branch-folder-single-bb-crash.mir

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 5
22
# RUN: llc -mtriple=armv7-apple-ios --run-pass=branch-folder %s -o - | FileCheck %s
33

4-
## Don't crash in branch-folder's HoistCommonCodeInSuccs when TBB and FBB are
5-
## the same block.
4+
## We hoist code from successor blocks, and in abnormal circumstances we can
5+
## have control flow that branches to the same block. Test we handle that
6+
## correctly.
7+
##
8+
## bb.5 (empty fall-through) folds into bb.6, making bb.2 branch to bb.6
9+
## unconditionally on a conditional branch (both edges go to bb.6).
10+
## Instructions are hosited from bb.2's successors, which is bb.6 twice,
11+
## along both edges.
612

713
...
814
---

0 commit comments

Comments
 (0)