Skip to content

Commit b4bd267

Browse files
committed
add diagram to test
1 parent 43dc6bb commit b4bd267

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

llvm/test/DebugInfo/KeyInstructions/Generic/simplifycfg-branch-fold.ll

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
22
; RUN: opt %s -S -passes=simplifycfg -bonus-inst-threshold=2 | FileCheck %s
33

4+
;; +---------------+
5+
;; | |
6+
;; +--> b --+ |
7+
;; | v v
8+
;; --> a d --> e --> f -->
9+
;; | ^ ^
10+
;; +--> c --+ |
11+
;; | |
12+
;; +---------------+
13+
414
;; Block d gets folded into preds b and c. Check the cloned instructions get
515
;; remapped DILocation atomGroup numbers in each of the preds. Additionally
616
;; check that the branches each inherit the atomGroup of the folded branch.

0 commit comments

Comments
 (0)