forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DeadArgumentElimination] Propagate operand bundles to promoted call …
…sites We neglected to transfer operand bundles when performing argument promotion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268008 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
Showing
2 changed files
with
39 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
; RUN: opt -S -deadargelim < %s | FileCheck %s | ||
target triple = "x86_64-pc-windows-msvc" | ||
|
||
define internal void @callee(i8*) { | ||
entry: | ||
call void @thunk() | ||
ret void | ||
} | ||
|
||
define void @test1() personality i32 (...)* @__CxxFrameHandler3 { | ||
entry: | ||
invoke void @thunk() | ||
to label %good1 unwind label %bad1 | ||
|
||
good1: ; preds = %entry-block | ||
ret void | ||
|
||
bad1: ; preds = %entry-block | ||
%pad1 = cleanuppad within none [] | ||
call void @callee(i8* null) [ "funclet"(token %pad1) ] | ||
cleanupret from %pad1 unwind to caller | ||
} | ||
; CHECK-LABEL: define void @test1( | ||
; CHECK: %[[pad:.*]] = cleanuppad within none [] | ||
; CHECK-NEXT: call void @callee() [ "funclet"(token %[[pad]]) ] | ||
|
||
declare void @thunk() | ||
|
||
declare i32 @__CxxFrameHandler3(...) |