1 ; Check that we fold the condition of branches of the
2 ; form: br <condition> dest1, dest2, where dest1 == dest2.
3 ; RUN: opt -instcombine -S < %s | FileCheck %s
5 define i32 @test(i32 %x) {
10 %cmp = icmp ult i32 %x, 7
11 br i1 %cmp, label %merge, label %merge
20 define i32 @pat(i32 %x) {
21 ; CHECK-NOT: icmp false
23 %y = icmp eq i32 27, ptrtoint(i8* @global to i32)
24 br i1 %y, label %patatino, label %patatino