diff options
| author | Reid Kleckner <reid@kleckner.net> | 2015-04-15 18:48:15 +0000 |
|---|---|---|
| committer | Reid Kleckner <reid@kleckner.net> | 2015-04-15 18:48:15 +0000 |
| commit | 3e9fadfbc8b6d9969ea47cce9295bfdf3212d97f (patch) | |
| tree | ac17f2a0fb6548eafd6e025c2ebce2567eac7d47 /llvm/test | |
| parent | 9e7a8172a3f4f26062a9866aa874ff3b5776e49d (diff) | |
| download | bcm5719-llvm-3e9fadfbc8b6d9969ea47cce9295bfdf3212d97f.tar.gz bcm5719-llvm-3e9fadfbc8b6d9969ea47cce9295bfdf3212d97f.zip | |
[WinEH] Try to make the MachineFunction CFG more accurate
This avoids emitting code for unreachable landingpad blocks that contain
calls to llvm.eh.actions and indirectbr.
It's also a first step towards unifying the SEH and WinEH lowering
codepaths. I'm keeping the old fan-in lowering of SEH around until the
preparation version works well enough that we can switch over without
breaking existing users.
llvm-svn: 235037
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/CodeGen/WinEH/cppeh-prepared-catch.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/WinEH/cppeh-prepared-catch.ll b/llvm/test/CodeGen/WinEH/cppeh-prepared-catch.ll index 7c53085edc5..0adbb8e8296 100644 --- a/llvm/test/CodeGen/WinEH/cppeh-prepared-catch.ll +++ b/llvm/test/CodeGen/WinEH/cppeh-prepared-catch.ll @@ -50,6 +50,8 @@ lpad1: ; preds = %entry } ; CHECK-LABEL: "?f@@YAXXZ.catch": +; No code should be generated for the indirectbr. +; CHECK-NOT: jmpq * ; CHECK: .seh_handlerdata ; CHECK: .long ("$cppxdata$?f@@YAXXZ")@IMGREL @@ -72,6 +74,8 @@ lpad: ; preds = %entry } ; CHECK-LABEL: "?f@@YAXXZ.catch1": +; No code should be generated for the indirectbr. +; CHECK-NOT: jmpq * ; CHECK: ".L?f@@YAXXZ.catch1$parent_frame_offset" = 16 ; CHECK: movq %rdx, 16(%rsp) ; CHECK: .seh_handlerdata @@ -112,6 +116,8 @@ try.cont8: ; preds = %lpad2, %try.cont } ; CHECK-LABEL: "?f@@YAXXZ": +; No code should be generated for the indirectbr. +; CHECK-NOT: jmpq * ; CHECK: .seh_handlerdata ; CHECK-NEXT: .long ("$cppxdata$?f@@YAXXZ")@IMGREL ; CHECK-NEXT:"$cppxdata$?f@@YAXXZ": |

