1 ; RUN: opt < %s -lcssa -licm -S | FileCheck %s
3 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
4 target triple = "x86_64-unknown-linux-gnu"
8 ; Test that we preserve LCSSA form when removing edges from unreachable blocks.
15 %x = phi i8 [ undef, %entry ], [ %y, %for.latch ]
16 br i1 undef, label %for.latch, label %exit
18 ; CHECK: unreachable.bb:
19 ; CHECK-NEXT: unreachable
21 br i1 undef, label %exit, label %for.latch
28 ; CHECK-NEXT: %x.lcssa = phi i8 [ %x, %for.cond ]
30 %z = zext i8 %x to i32