[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / llvm / test / Analysis / MemorySSA / pr44029.ll
blob785ccffffffa31b001daa7713b22463de9b2ad3f
1 ; RUN: opt -passes=loop-simplifycfg -verify-memoryssa -S < %s | FileCheck %s
2 ; REQUIRES: asserts
4 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
5 target triple = "x86_64-unknown-linux-gnu"
7 declare i32 @eggs(...)
9 declare void @spam()
11 ; CHECK-LABEL: @f()
12 define void @f() personality ptr @eggs {
13 bb:
14   invoke void @spam()
15           to label %bb2 unwind label %bb4
17 bb2:                                              ; preds = %bb
18   invoke void @spam()
19           to label %bb8 unwind label %bb5
21 bb4:                                              ; preds = %bb
22   %tmp = landingpad { ptr, i32 }
23           cleanup
24   resume { ptr, i32 } undef
26 bb5:                                              ; preds = %bb2
27   %tmp6 = landingpad { ptr, i32 }
28           cleanup
29   unreachable
31 bb8:                                              ; preds = %bb13, %bb2
32   br label %bb10
34 bb10:                                             ; preds = %bb8
35   invoke void @spam()
36           to label %bb11 unwind label %bb20
38 bb11:                                             ; preds = %bb10
39   invoke void @spam()
40           to label %bb12 unwind label %bb22
42 bb12:                                             ; preds = %bb11
43   invoke void @spam()
44           to label %bb13 unwind label %bb24
46 bb13:                                             ; preds = %bb12
47   br label %bb8
49 bb20:                                             ; preds = %bb10
50   %tmp21 = landingpad { ptr, i32 }
51           cleanup
52   unreachable
54 bb22:                                             ; preds = %bb11
55   %tmp23 = landingpad { ptr, i32 }
56           cleanup
57   unreachable
59 bb24:                                             ; preds = %bb12
60   %tmp25 = landingpad { ptr, i32 }
61           cleanup
62   unreachable