1 ; RUN: opt -passes=licm -S %s | FileCheck %s
2 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
3 target triple = "x86_64-unknown-linux-gnu"
6 define dso_local void @d() {
11 store i32 1, ptr null, align 4
12 br i1 true, label %cleanup53, label %body
15 br i1 undef, label %cleanup31, label %for.cond11
17 for.cond11: ; Needs branch as is
18 br i1 undef, label %unreachable, label %latch
24 br i1 undef, label %unreachable, label %deadblock
27 %val = load i32, ptr null, align 4
28 %cmpv = icmp eq i32 %val, 0
29 br i1 %cmpv, label %cleanup63, label %latch