aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/deadcode.ll
blob: fbd3c0c2df91ddb7e6c1d72f88ec41cb00be1bd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep 'ret int %A'

int %test(int %A) {
  %X = or bool false, false
  br bool %X, label %T, label %C
T:
  %B = add int %A, 1
  br label %C
C:
  %C = phi int [%B, %T], [%A, %0]
  ret int %C
}