diff options
author | David Majnemer <david.majnemer@gmail.com> | 2016-01-29 05:33:15 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2016-01-29 05:33:15 +0000 |
commit | f2bb710da516001a14ce9074c5ca1b8313426bce (patch) | |
tree | 999fdea58b78269b7e0bdffffd669abe9b5f2df2 /llvm/test | |
parent | 4661c610be1e5074359a0afdf77d76a76882141f (diff) | |
download | bcm5719-llvm-f2bb710da516001a14ce9074c5ca1b8313426bce.tar.gz bcm5719-llvm-f2bb710da516001a14ce9074c5ca1b8313426bce.zip |
[WinEH] Don't perform state stores in cleanups
Our cleanups do not support true lexical nesting of funclets which
obviates the need to perform state stores.
This fixes PR26361.
llvm-svn: 259161
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/CodeGen/WinEH/wineh-statenumbering-cleanups.ll | 1 | ||||
-rw-r--r-- | llvm/test/CodeGen/WinEH/wineh-statenumbering.ll | 1 | ||||
-rw-r--r-- | llvm/test/CodeGen/X86/win32-seh-nested-finally.ll | 2 |
3 files changed, 0 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/WinEH/wineh-statenumbering-cleanups.ll b/llvm/test/CodeGen/WinEH/wineh-statenumbering-cleanups.ll index f5889f03965..a18e412255e 100644 --- a/llvm/test/CodeGen/WinEH/wineh-statenumbering-cleanups.ll +++ b/llvm/test/CodeGen/WinEH/wineh-statenumbering-cleanups.ll @@ -44,7 +44,6 @@ entry: to label %exit unwind label %cleanup.pad cleanup.pad: ; CHECK: cleanup.pad: - ; CHECK: store i32 1 ; CHECK: invoke void @f(i32 0) %cleanup = cleanuppad within none [] invoke void @f(i32 0) diff --git a/llvm/test/CodeGen/WinEH/wineh-statenumbering.ll b/llvm/test/CodeGen/WinEH/wineh-statenumbering.ll index 4e7c36943a0..c9b89838c0e 100644 --- a/llvm/test/CodeGen/WinEH/wineh-statenumbering.ll +++ b/llvm/test/CodeGen/WinEH/wineh-statenumbering.ll @@ -120,7 +120,6 @@ try.cont4: ; preds = %try.cont ehcleanup: ; preds = %catch.dispatch1 %4 = cleanuppad within %1 [] ; CHECK: ehcleanup: - ; CHECK: store i32 -1 ; CHECK: call void @dtor() call void @dtor() #3 [ "funclet"(token %4) ] cleanupret from %4 unwind to caller diff --git a/llvm/test/CodeGen/X86/win32-seh-nested-finally.ll b/llvm/test/CodeGen/X86/win32-seh-nested-finally.ll index c283a35d70c..9db8f996c03 100644 --- a/llvm/test/CodeGen/X86/win32-seh-nested-finally.ll +++ b/llvm/test/CodeGen/X86/win32-seh-nested-finally.ll @@ -56,7 +56,6 @@ attributes #3 = { noinline } ; CHECK: LBB0_[[inner:[0-9]+]]: # %ehcleanup ; CHECK: pushl %ebp ; CHECK: addl $12, %ebp -; CHECK: movl $0, -[[state]](%ebp) ; CHECK: movl $2, (%esp) ; CHECK: calll _f ; CHECK: popl %ebp @@ -65,7 +64,6 @@ attributes #3 = { noinline } ; CHECK: LBB0_[[outer:[0-9]+]]: # %ehcleanup.3 ; CHECK: pushl %ebp ; CHECK: addl $12, %ebp -; CHECK: movl $-1, -[[state]](%ebp) ; CHECK: movl $3, (%esp) ; CHECK: calll _f ; CHECK: popl %ebp |