summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/gcc_except_table_functions.ll
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2015-02-20 01:00:19 +0000
committerReid Kleckner <reid@kleckner.net>2015-02-20 01:00:19 +0000
commit0b647e6cca16a55cce3d7e4dcc86b75273a5598b (patch)
treee3931a7fe2595e085ca754f1df46c16ae67330b9 /llvm/test/CodeGen/X86/gcc_except_table_functions.ll
parent0d94fa98e53c851f7646666a49bc1a01fa7d9782 (diff)
downloadbcm5719-llvm-0b647e6cca16a55cce3d7e4dcc86b75273a5598b.tar.gz
bcm5719-llvm-0b647e6cca16a55cce3d7e4dcc86b75273a5598b.zip
EH: Prune unreachable resume instructions during Dwarf EH preparation
Today a simple function that only catches exceptions and doesn't run destructor cleanups ends up containing a dead call to _Unwind_Resume (PR20300). We can't remove these dead resume instructions during normal optimization because inlining might introduce additional landingpads that do have cleanups to run. Instead we can do this during EH preparation, which is guaranteed to run after inlining. Fixes PR20300. Reviewers: majnemer Differential Revision: http://reviews.llvm.org/D7744 llvm-svn: 229944
Diffstat (limited to 'llvm/test/CodeGen/X86/gcc_except_table_functions.ll')
-rw-r--r--llvm/test/CodeGen/X86/gcc_except_table_functions.ll1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/gcc_except_table_functions.ll b/llvm/test/CodeGen/X86/gcc_except_table_functions.ll
index 4a8168050e5..7a64a01fa38 100644
--- a/llvm/test/CodeGen/X86/gcc_except_table_functions.ll
+++ b/llvm/test/CodeGen/X86/gcc_except_table_functions.ll
@@ -20,6 +20,7 @@ try.cont:
lpad:
%0 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
+ cleanup
catch i8* bitcast (void ()* @filt0 to i8*)
catch i8* bitcast (void ()* @filt1 to i8*)
%sel = extractvalue { i8*, i32 } %0, 1
OpenPOWER on IntegriCloud