aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/ADCE/2003-11-16-MissingPostDominanceInfo.ll
blob: cf7b08835b171fc1e7056378890350a9e6900916 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; RUN: llvm-upgrade < %s | llvm-as | opt -adce -simplifycfg | llvm-dis | grep call
declare void %exit(int)

int %main(int %argc) {
  %C = seteq int %argc, 1
  br bool %C, label %Cond, label %Done

Cond:
  br bool %C, label %Loop, label %Done

Loop:
  call void %exit(int 0)
  br label %Loop

Done:
	ret int 1
}