1 ; RUN: opt -licm -enable-mssa-loop-dependency -verify-memoryssa %s -S | FileCheck %s
3 ; Ensure verification doesn't fail with unreachable blocks.
5 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
6 target triple = "x86_64-grtev4-linux-gnu"
8 declare dso_local void @f()
11 define dso_local void @foo() {
13 br i1 undef, label %if.then, label %if.end
15 if.then: ; preds = %entry
18 if.end: ; preds = %entry
19 ; 1 = MemoryDef(liveOnEntry)
23 catch: ; No predecessors!
24 ; 2 = MemoryDef(liveOnEntry)
28 try.cont: ; preds = %if.end, %catch, %if.then
29 ; 3 = MemoryPhi({if.then,liveOnEntry},{if.end,1},{catch,liveOnEntry})