~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/Transforms/SimplifyCFG/2007-11-22-InvokeNoUnwind.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: opt < %s -simplifycfg -S | FileCheck %s
 
2
 
 
3
; CHECK-NOT: invoke
 
4
 
 
5
declare i32 @func(i8*) nounwind
 
6
 
 
7
define i32 @test() personality i32 (...)* @__gxx_personality_v0 {
 
8
        invoke i32 @func( i8* null )
 
9
                        to label %Cont unwind label %Other              ; <i32>:1 [#uses=0]
 
10
 
 
11
Cont:           ; preds = %0
 
12
        ret i32 0
 
13
 
 
14
Other:          ; preds = %0
 
15
        landingpad { i8*, i32 }
 
16
                catch i8* null
 
17
        ret i32 1
 
18
}
 
19
 
 
20
declare i32 @__gxx_personality_v0(...)