aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/branch.ll
blob: 5be93cc20234ae207733f457c7e47faa951c30a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; RUN: opt -instcombine -S < %s | FileCheck %s

define i32 @test(i32 %x) {
; CHECK-LABEL: @test
entry:
; CHECK-NOT: icmp
; CHECK: br i1 undef, 
  %cmp = icmp ult i32 %x, 7
  br i1 %cmp, label %merge, label %merge
merge:
; CHECK-LABEL: merge:
; CHECK: ret i32 %x
  ret i32 %x
}