[llvm-commits] [llvm] r139046 - in /llvm/trunk/test: CodeGen/Generic/ Transforms/ADCE/ Transforms/Inline/ Transforms/LCSSA/ Transforms/SimplifyCFG/ Transforms/TailCallElim/
Bill Wendling
isanbard at gmail.com
Fri Sep 2 15:41:11 PDT 2011
Author: void
Date: Fri Sep 2 17:41:11 2011
New Revision: 139046
URL: http://llvm.org/viewvc/llvm-project?rev=139046&view=rev
Log:
Try to eliminate the use of the 'unwind' instruction.
Modified:
llvm/trunk/test/CodeGen/Generic/2007-12-17-InvokeAsm.ll
llvm/trunk/test/Transforms/ADCE/2004-05-04-UnreachableBlock.ll
llvm/trunk/test/Transforms/ADCE/2005-02-17-PHI-Invoke-Crash.ll
llvm/trunk/test/Transforms/Inline/2007-12-19-InlineNoUnwind.ll
llvm/trunk/test/Transforms/LCSSA/invoke-dest.ll
llvm/trunk/test/Transforms/SimplifyCFG/2006-10-29-InvokeCrash.ll
llvm/trunk/test/Transforms/SimplifyCFG/2009-01-19-UnconditionalTrappingConstantExpr.ll
llvm/trunk/test/Transforms/SimplifyCFG/2009-06-15-InvokeCrash.ll
llvm/trunk/test/Transforms/SimplifyCFG/2010-03-30-InvokeCrash.ll
llvm/trunk/test/Transforms/SimplifyCFG/BrUnwind.ll
llvm/trunk/test/Transforms/TailCallElim/dont_reorder_load.ll
Modified: llvm/trunk/test/CodeGen/Generic/2007-12-17-InvokeAsm.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Generic/2007-12-17-InvokeAsm.ll?rev=139046&r1=139045&r2=139046&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/Generic/2007-12-17-InvokeAsm.ll (original)
+++ llvm/trunk/test/CodeGen/Generic/2007-12-17-InvokeAsm.ll Fri Sep 2 17:41:11 2011
@@ -11,7 +11,7 @@
cleanup144: ; preds = %entry
%exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
cleanup
- unwind
+ resume { i8*, i32 } %exn
}
declare i32 @__gxx_personality_v0(...)
Modified: llvm/trunk/test/Transforms/ADCE/2004-05-04-UnreachableBlock.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/ADCE/2004-05-04-UnreachableBlock.ll?rev=139046&r1=139045&r2=139046&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/ADCE/2004-05-04-UnreachableBlock.ll (original)
+++ llvm/trunk/test/Transforms/ADCE/2004-05-04-UnreachableBlock.ll Fri Sep 2 17:41:11 2011
@@ -11,6 +11,6 @@
br i1 false, label %UnifiedUnwindBlock, label %UnifiedReturnBlock
UnifiedUnwindBlock: ; preds = %invoke_catch.0
- unwind
+ unreachable
}
Modified: llvm/trunk/test/Transforms/ADCE/2005-02-17-PHI-Invoke-Crash.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/ADCE/2005-02-17-PHI-Invoke-Crash.ll?rev=139046&r1=139045&r2=139046&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/ADCE/2005-02-17-PHI-Invoke-Crash.ll (original)
+++ llvm/trunk/test/Transforms/ADCE/2005-02-17-PHI-Invoke-Crash.ll Fri Sep 2 17:41:11 2011
@@ -21,7 +21,7 @@
to label %tmp.1.i.i183.noexc unwind label %terminate
tmp.1.i.i183.noexc: ; preds = %invoke_catch.0
- unwind
+ ret void
then.0: ; preds = %tmp.3.i.noexc
invoke void @_ZN10QByteArray6resizeEi( )
Modified: llvm/trunk/test/Transforms/Inline/2007-12-19-InlineNoUnwind.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/2007-12-19-InlineNoUnwind.ll?rev=139046&r1=139045&r2=139046&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/2007-12-19-InlineNoUnwind.ll (original)
+++ llvm/trunk/test/Transforms/Inline/2007-12-19-InlineNoUnwind.ll Fri Sep 2 17:41:11 2011
@@ -10,7 +10,7 @@
r:
ret i32 0
u:
- unwind
+ unreachable
}
define i32 @caller() {
Modified: llvm/trunk/test/Transforms/LCSSA/invoke-dest.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/LCSSA/invoke-dest.ll?rev=139046&r1=139045&r2=139046&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/LCSSA/invoke-dest.ll (original)
+++ llvm/trunk/test/Transforms/LCSSA/invoke-dest.ll Fri Sep 2 17:41:11 2011
@@ -110,12 +110,18 @@
to label %.noexc unwind label %lpad119 ; <i8*> [#uses=1]
lpad: ; preds = %_ZN7cObjectnwEj.exit
+ %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
+ cleanup
br label %Unwind
lpad119: ; preds = %bb106, %invcont104, %invcont103, %bb102, %bb49, %bb34, %bb12, %invcont10, %invcont9, %bb8
+ %exn119 = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
+ cleanup
unreachable
lpad123: ; preds = %.noexc
+ %exn123 = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
+ cleanup
%tmp5 = icmp eq i8* %tmp4, null ; <i1> [#uses=1]
br i1 %tmp5, label %Unwind, label %bb.i2
@@ -126,6 +132,8 @@
unreachable
}
+declare i32 @__gxx_personality_v0(...)
+
declare void @_ZN8EtherBus8tokenizeEPKcRSt6vectorIdSaIdEE(i8* nocapture, i8*, i8*)
declare i8* @_Znaj(i32)
Modified: llvm/trunk/test/Transforms/SimplifyCFG/2006-10-29-InvokeCrash.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/SimplifyCFG/2006-10-29-InvokeCrash.ll?rev=139046&r1=139045&r2=139046&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/SimplifyCFG/2006-10-29-InvokeCrash.ll (original)
+++ llvm/trunk/test/Transforms/SimplifyCFG/2006-10-29-InvokeCrash.ll Fri Sep 2 17:41:11 2011
@@ -461,7 +461,7 @@
%val = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
cleanup
call void @_ZN8QPainterD1Ev( %struct.QPainter* %p )
- unwind
+ resume { i8*, i32 } %val
}
declare void @_ZN6QSizeFC1Edd(%struct.QPointF*, double, double)
Modified: llvm/trunk/test/Transforms/SimplifyCFG/2009-01-19-UnconditionalTrappingConstantExpr.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/SimplifyCFG/2009-01-19-UnconditionalTrappingConstantExpr.ll?rev=139046&r1=139045&r2=139046&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/SimplifyCFG/2009-01-19-UnconditionalTrappingConstantExpr.ll (original)
+++ llvm/trunk/test/Transforms/SimplifyCFG/2009-01-19-UnconditionalTrappingConstantExpr.ll Fri Sep 2 17:41:11 2011
@@ -15,7 +15,7 @@
ret i32 42
bb6:
- unwind
+ ret i32 927
}
define i32 @test2(i32 %tmp21, i32 %tmp24, i1 %tmp34) {
@@ -26,6 +26,6 @@
bb6:
ret i32 42
bb7:
- unwind
+ ret i32 927
}
Modified: llvm/trunk/test/Transforms/SimplifyCFG/2009-06-15-InvokeCrash.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/SimplifyCFG/2009-06-15-InvokeCrash.ll?rev=139046&r1=139045&r2=139046&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/SimplifyCFG/2009-06-15-InvokeCrash.ll (original)
+++ llvm/trunk/test/Transforms/SimplifyCFG/2009-06-15-InvokeCrash.ll Fri Sep 2 17:41:11 2011
@@ -463,7 +463,7 @@
%val329 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
cleanup
call void @_ZN8QPainterD1Ev( %struct.QPainter* %p )
- unwind
+ resume { i8*, i32 } %val329
}
declare void @_ZN6QSizeFC1Edd(%struct.QPointF*, double, double)
Modified: llvm/trunk/test/Transforms/SimplifyCFG/2010-03-30-InvokeCrash.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/SimplifyCFG/2010-03-30-InvokeCrash.ll?rev=139046&r1=139045&r2=139046&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/SimplifyCFG/2010-03-30-InvokeCrash.ll (original)
+++ llvm/trunk/test/Transforms/SimplifyCFG/2010-03-30-InvokeCrash.ll Fri Sep 2 17:41:11 2011
@@ -14,5 +14,9 @@
ret void
u: ; preds = %entry
- unwind
+ %val = landingpad { i8*, i32 } personality i32 (...)* @__gxx_personality_v0
+ cleanup
+ resume { i8*, i32 } %val
}
+
+declare i32 @__gxx_personality_v0(...)
Modified: llvm/trunk/test/Transforms/SimplifyCFG/BrUnwind.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/SimplifyCFG/BrUnwind.ll?rev=139046&r1=139045&r2=139046&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/SimplifyCFG/BrUnwind.ll (original)
+++ llvm/trunk/test/Transforms/SimplifyCFG/BrUnwind.ll Fri Sep 2 17:41:11 2011
@@ -10,6 +10,6 @@
call void @test( i1 %C )
br label %X
X: ; preds = %B, %A
- unwind
+ ret void
}
Modified: llvm/trunk/test/Transforms/TailCallElim/dont_reorder_load.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/TailCallElim/dont_reorder_load.ll?rev=139046&r1=139045&r2=139046&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/TailCallElim/dont_reorder_load.ll (original)
+++ llvm/trunk/test/Transforms/TailCallElim/dont_reorder_load.ll Fri Sep 2 17:41:11 2011
@@ -16,7 +16,7 @@
br i1 %tmp2, label %if, label %else
if: ; preds = %entry
- unwind
+ ret i32 37
else: ; preds = %entry
%tmp7 = add i32 %start_arg, 1 ; <i32> [#uses=1]
More information about the llvm-commits
mailing list