summaryrefslogtreecommitdiffstats
path: root/test/Transforms/SimplifyCFG/HoistCode.ll
blob: 9697e56a719f1fe324b6eac512923b6309ecdbc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: opt < %s -simplifycfg -S | not grep br

define void @foo(i1 %C, i32* %P) {
        br i1 %C, label %T, label %F
T:              ; preds = %0
        store i32 7, i32* %P
        ret void
F:              ; preds = %0
        store i32 7, i32* %P
        ret void
}