Add a "cfg_postorder:" printout to the "test domtree" file tests and use that to check the computed CFG post-order instead of doing it manually with Rust code.
19 lines
324 B
Plaintext
19 lines
324 B
Plaintext
test domtree
|
|
|
|
function %test(i32) {
|
|
ebb0(v0: i32):
|
|
jump ebb1 ; dominates: ebb1
|
|
ebb1:
|
|
brz v0, ebb3 ; dominates: ebb3
|
|
jump ebb2 ; dominates: ebb2
|
|
ebb2:
|
|
jump ebb3
|
|
ebb3:
|
|
return
|
|
}
|
|
; check: cfg_postorder:
|
|
; sameln: ebb2
|
|
; sameln: ebb3
|
|
; sameln: ebb1
|
|
; sameln: ebb0
|